app: fix selection display on right/bottom borders when rulers are…
… displayed. We should use the dimensions from the GimpDisplayShell not the the GimpCanvas. Indeed the canvas is shorter when rulers are visible, hence the selection next to the extreme sides (bottom and right sides of the canvas) was not drawn.
This commit is contained in:
@ -309,7 +309,7 @@ selection_render_mask (Selection *selection)
|
||||
cairo_surface_t *surface;
|
||||
cairo_t *cr;
|
||||
|
||||
window = gtk_widget_get_window (selection->shell->canvas);
|
||||
window = gtk_widget_get_window (GTK_WIDGET (selection->shell));
|
||||
surface = gdk_window_create_similar_surface (window, CAIRO_CONTENT_ALPHA,
|
||||
gdk_window_get_width (window),
|
||||
gdk_window_get_height (window));
|
||||
@ -451,7 +451,7 @@ selection_start_timeout (Selection *selection)
|
||||
cairo_rectangle_int_t rect;
|
||||
cairo_region_t *region;
|
||||
|
||||
window = gtk_widget_get_window (selection->shell->canvas);
|
||||
window = gtk_widget_get_window (GTK_WIDGET (selection->shell));
|
||||
|
||||
rect.x = 0;
|
||||
rect.y = 0;
|
||||
|
Reference in New Issue
Block a user