summaryrefslogtreecommitdiff
path: root/src/gs-grab-x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gs-grab-x11.c')
-rw-r--r--src/gs-grab-x11.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gs-grab-x11.c b/src/gs-grab-x11.c
index 18066a4..6e13b91 100644
--- a/src/gs-grab-x11.c
+++ b/src/gs-grab-x11.c
@@ -259,8 +259,8 @@ gs_grab_release (GSGrab *grab, gboolean flush)
/* FIXME: is it right to enable this? */
xorg_lock_smasher_set_active (grab, TRUE);
- gdk_display_sync (gdk_display_get_default ());
- gdk_flush ();
+ gdk_display_sync (display);
+ gdk_display_flush (display);
}
}
@@ -345,13 +345,13 @@ gs_grab_nuke_focus (GdkDisplay *display)
gs_debug ("Nuking focus");
- gdk_error_trap_push ();
+ gdk_x11_display_error_trap_push (display);
XGetInputFocus (GDK_DISPLAY_XDISPLAY (display), &focus, &rev);
XSetInputFocus (GDK_DISPLAY_XDISPLAY (display), None,
RevertToNone, CurrentTime);
- gdk_error_trap_pop_ignored ();
+ gdk_x11_display_error_trap_pop_ignored (display);
}
gboolean
@@ -461,7 +461,7 @@ gs_grab_move_to_window (GSGrab *grab,
{
result = gs_grab_move (grab, window, display,
no_pointer_grab, hide_cursor);
- gdk_flush ();
+ gdk_display_flush (display);
}
}