[Xfce4-commits] [apps/xfdashboard] 01/02: Fix getting primary state of a monitor when compiling against GTK+/GDK version 3.22 and above. This bug has set the primary state to true for *all* monitors :(

noreply at xfce.org noreply at xfce.org
Wed May 3 07:09:00 CEST 2017


This is an automated email from the git hooks/post-receive script.

nomad pushed a commit to branch master
in repository apps/xfdashboard.

commit 5e2a06b337f3c42bd043276dc1611421e8d38c28
Author: Stephan Haller <nomad at froevel.de>
Date:   Wed May 3 07:02:55 2017 +0200

    Fix getting primary state of a monitor when compiling against GTK+/GDK version 3.22 and above. This bug has set the primary state to true for *all* monitors :(
---
 libxfdashboard/x11/window-tracker-monitor-x11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libxfdashboard/x11/window-tracker-monitor-x11.c b/libxfdashboard/x11/window-tracker-monitor-x11.c
index 7a293b1..66a08d0 100644
--- a/libxfdashboard/x11/window-tracker-monitor-x11.c
+++ b/libxfdashboard/x11/window-tracker-monitor-x11.c
@@ -96,7 +96,7 @@ static void _xfdashboard_window_tracker_monitor_x11_update_primary(XfdashboardWi
 
 	/* Get primary flag */
 #if GTK_CHECK_VERSION(3, 22, 0)
-	primaryMonitor=gdk_display_get_primary_monitor(gdk_screen_get_display(priv->screen));
+	primaryMonitor=gdk_display_get_monitor(gdk_screen_get_display(priv->screen), priv->monitorIndex);
 	isPrimary=gdk_monitor_is_primary(primaryMonitor);
 #else
 	primaryMonitor=gdk_screen_get_primary_monitor(priv->screen);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list