diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-09-06 02:13:07 -0300 |
---|---|---|
committer | Rui Matos <tiagomatos@gmail.com> | 2013-09-10 15:52:34 +0200 |
commit | 82a1d47726f2159caa608992a9385b3022f265da (patch) | |
tree | 96db1849940c999b7c5933b325866d7931c6fc19 | |
parent | 67f959bf9671901293b2cc2d3c1b494b80b7447c (diff) | |
download | gnome-control-center-82a1d47726f2159caa608992a9385b3022f265da.tar.gz |
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
-rw-r--r-- | 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 14fa24412..ef3cfff1e 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); |