File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,14 @@ drw_selection_clear (GtkWidget *widget,
7070static gboolean
7171drw_selection_find_existing (DrwSelection * drw_selection )
7272{
73- Display * xdisplay = GDK_DISPLAY_XDISPLAY ( gdk_display_get_default ()) ;
73+ GdkDisplay * display ;
7474 Window old ;
75+ Display * xdisplay ;
76+
77+ display = gdk_display_get_default ();
78+ xdisplay = GDK_DISPLAY_XDISPLAY (display );
7579
76- gdk_error_trap_push ( );
80+ gdk_x11_display_error_trap_push ( display );
7781 old = XGetSelectionOwner (xdisplay ,
7882 gdk_x11_get_xatom_by_name (SELECTION_NAME ));
7983 if (old ) {
@@ -82,7 +86,7 @@ drw_selection_find_existing (DrwSelection *drw_selection)
8286 }
8387 XSync (xdisplay , False );
8488
85- if (gdk_error_trap_pop ( ) == 0 && drw_selection -> owner_window ) {
89+ if (gdk_x11_display_error_trap_pop ( display ) == 0 && drw_selection -> owner_window ) {
8690 gdk_window_add_filter (drw_selection -> owner_window ,
8791 drw_selection_filter , drw_selection );
8892
You can’t perform that action at this time.
0 commit comments