[Xfce4-commits] [xfce/libxfce4ui] 08/08: Do not use gdk_screen_get_monitor_at_point (Bug #15781)
noreply at xfce.org
noreply at xfce.org
Sun Oct 13 20:20:21 CEST 2019
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h x f c e - 4 . 1 4
in repository xfce/libxfce4ui.
commit dfdaf372461954434e858bc9695b36899e562dbe
Author: Andre Miranda <andreldm at xfce.org>
Date: Sun Aug 4 13:50:03 2019 -0300
Do not use gdk_screen_get_monitor_at_point (Bug #15781)
---
libxfce4ui/xfce-gdk-extensions.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libxfce4ui/xfce-gdk-extensions.c b/libxfce4ui/xfce-gdk-extensions.c
index ccf067f..a3466f8 100644
--- a/libxfce4ui/xfce-gdk-extensions.c
+++ b/libxfce4ui/xfce-gdk-extensions.c
@@ -49,6 +49,7 @@
/**
* xfce_gdk_screen_get_active:
* @monitor_return : (out) (allow-none): Address to store the monitor number to or %NULL.
+ * Under gtk3 this will always be set to '0'.
*
* Returns the currently active #GdkScreen, that is, the screen which
* currently contains the pointer. If no active screen was found, the
@@ -84,7 +85,11 @@ xfce_gdk_screen_get_active (gint *monitor_return)
{
/* return the monitor number */
if (monitor_return != NULL)
+#if GTK_CHECK_VERSION (3, 22, 0)
+ *monitor_return = 0;
+#else
*monitor_return = gdk_screen_get_monitor_at_point (screen, rootx, rooty);
+#endif
}
return screen;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list