diff options
author | Owen Taylor <otaylor@redhat.com> | 2000-02-25 05:01:58 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2000-02-25 05:01:58 +0000 |
commit | 7fe1ef80e2cc05538c6a72aa7da8d9cb59fc4f42 (patch) | |
tree | 70e342c08e721d9f6d17c4fd2c0601398ce7d79e /gdk/gdkwindow.c | |
parent | aee7dfc9716060f256a16122835e641648b292ca (diff) | |
download | gtk+-gtk-no-flicker.tar.gz |
Don't worry about clipping of toplevel windows and their immediategtk-no-flicker
Thu Feb 24 23:58:21 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
toplevel windows and their immediate children by their parents,
since the size of toplevel windows is out of our immediate
control and we don't get any real benefit from trying to track
this size for clipping.
* gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
for input_only windows.
* gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
to fix some hacks and make sure that we don't try to set the
background of input only windows.
Diffstat (limited to 'gdk/gdkwindow.c')
-rw-r--r-- | gdk/gdkwindow.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index b300cac1ab..efe2fe57ae 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -1170,6 +1170,9 @@ gdk_window_invalidate_region (GdkWindow *window, g_return_if_fail (window != NULL); g_return_if_fail (GDK_IS_WINDOW (window)); + if (private->input_only) + return; + if (private->update_area) { gdk_region_union (private->update_area, region); @@ -1196,10 +1199,7 @@ gdk_window_invalidate_region (GdkWindow *window, GdkWindowPrivate *child = tmp_list->data; tmp_list = tmp_list->next; - /* FIXME: this is a HACK to figure out if the child is - * input-only. - */ - if (child->drawable.colormap) + if (child->input_only) { child_rect.x = child->x; child_rect.y = child->y; |