We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc70465 commit ded490eCopy full SHA for ded490e
libcaja-private/caja-autorun.c
@@ -753,15 +753,17 @@ static gboolean
753
is_shift_pressed (void)
754
{
755
gboolean ret;
756
+ GdkDisplay *display;
757
XkbStateRec state;
758
Bool status;
759
760
ret = FALSE;
761
- gdk_error_trap_push ();
762
- status = XkbGetState (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
763
- XkbUseCoreKbd, &state);
764
- gdk_error_trap_pop_ignored ();
+ display = gdk_display_get_default ();
+ gdk_x11_display_error_trap_push (display);
+ status = XkbGetState (GDK_DISPLAY_XDISPLAY (display),
765
+ XkbUseCoreKbd, &state);
766
+ gdk_x11_display_error_trap_pop_ignored (display);
767
768
if (status == Success)
769
0 commit comments