summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-12-19 16:20:43 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-19 16:20:43 +0100
commit04fd72c766592e3027f269b969d733175c462d94 (patch)
tree150162cdacebb09e6337c5410f913cd5837c3e9e
parent807d21b1b86fa51e8acd840c4382b4b16784c2b6 (diff)
downloadmate-applets-04fd72c766592e3027f269b969d733175c462d94.tar.bz2
mate-applets-04fd72c766592e3027f269b969d733175c462d94.tar.xz
Gtk3 trash applet: with gtk+-3.10 the number of screens is always 1
-rw-r--r--trashapplet/src/xstuff.c4
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;