diff options
author | yetist <[email protected]> | 2018-05-12 13:39:47 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-05-14 21:22:26 +0200 |
commit | abaa88eaf6b495949199afd5886a519f89c39f36 (patch) | |
tree | eddcfc03740c765d59344ff0fdf81b79455dfd81 /src/gs-grab-x11.c | |
parent | ce87b58ea6349d0a2b48ae1f7f01d5783027f7f5 (diff) | |
download | mate-screensaver-abaa88eaf6b495949199afd5886a519f89c39f36.tar.bz2 mate-screensaver-abaa88eaf6b495949199afd5886a519f89c39f36.tar.xz |
Fixed some gdk deprecations
Diffstat (limited to 'src/gs-grab-x11.c')
-rw-r--r-- | src/gs-grab-x11.c | 10 |
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); } } |