File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -86,20 +86,22 @@ xstuff_get_current_workspace (GtkWindow *window)
8686 int format ;
8787 int result ;
8888 int retval ;
89- Display * gdk_display ;
89+ GdkDisplay * gdk_display ;
90+ Display * xdisplay ;
9091
9192 root_window = GDK_WINDOW_XID (gtk_widget_get_window (GTK_WIDGET (window )));
92- gdk_display = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
93+ gdk_display = gdk_display_get_default ();
94+ xdisplay = GDK_DISPLAY_XDISPLAY (gdk_display );
9395
94- gdk_error_trap_push ( );
95- result = XGetWindowProperty (gdk_display ,
96+ gdk_x11_display_error_trap_push ( gdk_display );
97+ result = XGetWindowProperty (xdisplay ,
9698 root_window ,
9799 xstuff_atom_get ("_NET_CURRENT_DESKTOP" ),
98100 0 , G_MAXLONG ,
99101 False , XA_CARDINAL ,
100102 & type , & format , & nitems ,
101103 & bytes_after , (gpointer ) & num );
102- if (gdk_error_trap_pop ( ) || result != Success )
104+ if (gdk_x11_display_error_trap_pop ( gdk_display ) || result != Success )
103105 return -1 ;
104106
105107 if (type != XA_CARDINAL ) {
You can’t perform that action at this time.
0 commit comments