diff options
author | Owen Taylor <otaylor@redhat.com> | 2000-08-02 19:07:00 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2000-08-02 19:07:00 +0000 |
commit | 1b6dbf0ea2923f344983429dc67780fd53f98add (patch) | |
tree | c5a3b3268594e6af84efbf2c7267f85ca79c28e0 /gdk/gdkwindow.c | |
parent | 7bc2cb6e6ef4ed94a486cf1e41497ee2e46c045b (diff) | |
download | gtk+-1b6dbf0ea2923f344983429dc67780fd53f98add.tar.gz |
Move is_viewable() test further inside the function, since removing the
Wed Aug 2 14:57:38 2000 Owen Taylor <otaylor@redhat.com>
* gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
is_viewable() test further inside the function, since removing the
window from the redraw list without clearing ->update_area
was also very broken.
Diffstat (limited to 'gdk/gdkwindow.c')
-rw-r--r-- | gdk/gdkwindow.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index d019b7c206..bad3113e63 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -1416,9 +1416,6 @@ gdk_window_process_updates_internal (GdkWindow *window) GdkWindowObject *private = (GdkWindowObject *)window; gboolean save_region = FALSE; - if (!gdk_window_is_viewable (window)) - return; - /* If an update got queued during update processing, we can get a * window in the update queue that has an empty update_area. * just ignore it. @@ -1428,7 +1425,7 @@ gdk_window_process_updates_internal (GdkWindow *window) GdkRegion *update_area = private->update_area; private->update_area = NULL; - if (gdk_event_func) + if (gdk_event_func && gdk_window_is_viewable (window)) { GdkEvent event; GdkRectangle window_rect; |