mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
window: Only draw the resize grip if it is actually visible
This issue can only be seen if someone calls gtk_widget_draw() on the window as otherwise gtk_cairo_should_draw_window() would return FALSE.
This commit is contained in:
parent
71e9606e16
commit
7ef113ce56
@ -7304,7 +7304,7 @@ gtk_window_draw (GtkWidget *widget,
|
||||
if (GTK_WIDGET_CLASS (gtk_window_parent_class)->draw)
|
||||
ret = GTK_WIDGET_CLASS (gtk_window_parent_class)->draw (widget, cr);
|
||||
|
||||
if (priv->grip_window != NULL &&
|
||||
if (priv->resize_grip_visible &&
|
||||
gtk_cairo_should_draw_window (cr, priv->grip_window))
|
||||
{
|
||||
GdkRectangle rect;
|
||||
|
Loading…
Reference in New Issue
Block a user