diff options
author | Owen Taylor <owt1@cornell.edu> | 1998-02-23 20:54:07 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-02-23 20:54:07 +0000 |
commit | d3607d5465194d09a9fd4c75b306303484935a54 (patch) | |
tree | 5349fec08b3ffc056d360224a89e5252afb140f0 /gtk/gtkwindow.c | |
parent | 7add75fba5eacf78decbba100158b333d66b0c92 (diff) | |
download | gtk+-d3607d5465194d09a9fd4c75b306303484935a54.tar.gz |
Don't process configure events that just move the window, and don't resize
Mon Feb 23 15:41:13 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkwidget.c gtk/gtkmenu.c: Don't process configure events
that just move the window, and don't resize it. Because we need
to make sure that a widget gets redrawn after a size_allocate -
and that only happens when the configure event changes the size
of the window. Plus, it's inefficient.
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r-- | gtk/gtkwindow.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 7c2b3534a9..a805bfc92c 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -716,6 +716,11 @@ gtk_window_configure_event (GtkWidget *widget, g_return_val_if_fail (GTK_IS_WINDOW (widget), FALSE); g_return_val_if_fail (event != NULL, FALSE); + /* If the window was merely moved, do nothing */ + if ((widget->allocation.width == event->width) && + (widget->allocation.height == event->height)) + return FALSE; + window = GTK_WINDOW (widget); window->handling_resize = TRUE; |