diff options
-rw-r--r-- | trashapplet/src/xstuff.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/trashapplet/src/xstuff.c b/trashapplet/src/xstuff.c index 20c97f6a..c8b181c5 100644 --- a/trashapplet/src/xstuff.c +++ b/trashapplet/src/xstuff.c @@ -529,7 +529,11 @@ xstuff_grab_key_on_all_screens (int keycode, int i; display = gdk_display_get_default (); +#if GTK_CHECK_VERSION(3, 0, 0) + n_screens = 1; /* gdk-3.10, The number of screens is always 1 */ +#else n_screens = gdk_display_get_n_screens (display); +#endif for (i = 0; i < n_screens; i++) { GdkWindow *root; |