Commit 7ef113ce authored by Benjamin Otte's avatar Benjamin Otte

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.
parent 71e9606e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment