From 8f69742b195a7865bc0a23f660afa888aa437f86 Mon Sep 17 00:00:00 2001 From: yetist Date: Fri, 19 Jun 2015 00:19:49 +0800 Subject: Gtk3: gdk_display_get_n_screens() always return 1 from 3.10 --- mate-panel/xstuff.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mate-panel/xstuff.c b/mate-panel/xstuff.c index 9af5d919..898bcb6f 100644 --- a/mate-panel/xstuff.c +++ b/mate-panel/xstuff.c @@ -700,7 +700,11 @@ xstuff_grab_key_on_all_screens (int keycode, int i; display = gdk_display_get_default (); +#if GTK_CHECK_VERSION(3, 10, 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; -- cgit v1.2.1