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:
Benjamin Otte 2011-04-16 21:48:05 +02:00
parent 71e9606e16
commit 7ef113ce56

View File

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