summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gpm-button.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpm-button.c b/src/gpm-button.c
index b331cf6..8c2e808 100644
--- a/src/gpm-button.c
+++ b/src/gpm-button.c
@@ -171,7 +171,11 @@ gpm_button_grab_keystring (GpmButton *button, guint64 keycode)
/* we are not processing the error */
gdk_flush ();
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gdk_error_trap_pop_ignored ();
+#else
gdk_error_trap_pop ();
+#endif
egg_debug ("Grabbed modmask=%x, keycode=%li", modmask, (long int) keycode);
return TRUE;