[gthumb] desktop background: fixed the way to obtain the monitor geometry



commit 362b4596412a1b125c92d16dd573b621da944d01
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu Mar 15 09:26:42 2018 +0100

    desktop background: fixed the way to obtain the monitor geometry
    
    The primary monitor could not be set, use the main window monitor
    instead.

 extensions/desktop_background/actions.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/desktop_background/actions.c b/extensions/desktop_background/actions.c
index 3509159..e991fce 100644
--- a/extensions/desktop_background/actions.c
+++ b/extensions/desktop_background/actions.c
@@ -370,7 +370,7 @@ wallpaper_metadata_ready_cb (GObject      *source_object,
 
 #if GTK_CHECK_VERSION(3, 22, 0)
 
-       gdk_monitor_get_geometry (gdk_display_get_primary_monitor (gtk_widget_get_display (GTK_WIDGET 
(wdata->browser))), &monitor_geometry);
+       gdk_monitor_get_geometry (gdk_display_get_monitor_at_window (gtk_widget_get_display (GTK_WIDGET 
(wdata->browser)), gtk_widget_get_window (GTK_WIDGET (wdata->browser))), &monitor_geometry);
 
 #else
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]