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
This commit is contained in:
Bastien Nocera 2013-09-06 02:13:07 -03:00 committed by Rui Matos
parent c68552253c
commit fd4cf7b881

View file

@ -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);