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:
parent
c68552253c
commit
fd4cf7b881
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue