diff options
Diffstat (limited to 'libcaja-private/caja-autorun.c')
-rw-r--r-- | libcaja-private/caja-autorun.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libcaja-private/caja-autorun.c b/libcaja-private/caja-autorun.c index 94a23400..23a153dd 100644 --- a/libcaja-private/caja-autorun.c +++ b/libcaja-private/caja-autorun.c @@ -753,15 +753,17 @@ static gboolean is_shift_pressed (void) { gboolean ret; + GdkDisplay *display; XkbStateRec state; Bool status; ret = FALSE; - gdk_error_trap_push (); - status = XkbGetState (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), - XkbUseCoreKbd, &state); - gdk_error_trap_pop_ignored (); + display = gdk_display_get_default (); + gdk_x11_display_error_trap_push (display); + status = XkbGetState (GDK_DISPLAY_XDISPLAY (display), + XkbUseCoreKbd, &state); + gdk_x11_display_error_trap_pop_ignored (display); if (status == Success) { |