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



commit 82a1d47726f2159caa608992a9385b3022f265da
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 14fa244..ef3cfff 100644
--- a/panels/background/cc-background-panel.c
+++ b/panels/background/cc-background-panel.c
@@ -289,7 +289,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]