[gnome-control-center] background: Fix top bar location on dual-head



commit fd4cf7b88192775c71e8e15f4ccdd1568237e433
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Sep 6 02:13:07 2013 -0300

    background: Fix top bar location on dual-head
    
    For testing:
    xrandr --addmode VGA1 1024x768
    xrandr --output VGA1 --mode 1024x768 --left-of eDP1
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706578

 panels/background/cc-background-panel.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/background/cc-background-panel.c b/panels/background/cc-background-panel.c
index 752a827..5f81cf0 100644
--- a/panels/background/cc-background-panel.c
+++ b/panels/background/cc-background-panel.c
@@ -315,7 +315,9 @@ on_screenshot_finished (GObject *source,
   surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
                                         data->monitor_rect.width, data->monitor_rect.height);
   cr = cairo_create (surface);
-  gdk_cairo_set_source_pixbuf (cr, pixbuf, data->capture_rect.x, data->capture_rect.y);
+  gdk_cairo_set_source_pixbuf (cr, pixbuf,
+                               data->capture_rect.x - data->monitor_rect.x,
+                               data->capture_rect.y - data->monitor_rect.y);
   cairo_paint (cr);
   g_object_unref (pixbuf);
 


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