Special case pixmaps. (#114880)

2003-06-12  Anders Carlsson  <andersca@codefactory.se>

	* gtk/gtkwidget.c: (event_window_is_still_viewable):
	Special case pixmaps. (#114880)
This commit is contained in:
Anders Carlsson 2003-06-12 20:49:18 +00:00 committed by Anders Carlsson
parent ce294c13a6
commit 79895e30d3
6 changed files with 32 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-06-12 Anders Carlsson <andersca@codefactory.se>
* gtk/gtkwidget.c: (event_window_is_still_viewable):
Special case pixmaps. (#114880)
2003-06-12 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwidget.c: Document child-notify and drag-data-received

View File

@ -1,3 +1,8 @@
2003-06-12 Anders Carlsson <andersca@codefactory.se>
* gtk/gtkwidget.c: (event_window_is_still_viewable):
Special case pixmaps. (#114880)
2003-06-12 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwidget.c: Document child-notify and drag-data-received

View File

@ -1,3 +1,8 @@
2003-06-12 Anders Carlsson <andersca@codefactory.se>
* gtk/gtkwidget.c: (event_window_is_still_viewable):
Special case pixmaps. (#114880)
2003-06-12 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwidget.c: Document child-notify and drag-data-received

View File

@ -1,3 +1,8 @@
2003-06-12 Anders Carlsson <andersca@codefactory.se>
* gtk/gtkwidget.c: (event_window_is_still_viewable):
Special case pixmaps. (#114880)
2003-06-12 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwidget.c: Document child-notify and drag-data-received

View File

@ -1,3 +1,8 @@
2003-06-12 Anders Carlsson <andersca@codefactory.se>
* gtk/gtkwidget.c: (event_window_is_still_viewable):
Special case pixmaps. (#114880)
2003-06-12 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwidget.c: Document child-notify and drag-data-received

View File

@ -3114,6 +3114,13 @@ gtk_widget_send_expose (GtkWidget *widget,
static gboolean
event_window_is_still_viewable (GdkEvent *event)
{
/* Some programs, such as gnome-theme-manager, fake widgets
* into exposing onto a pixmap by sending expose events with
* event->window pointing to a pixmap
*/
if (GDK_IS_PIXMAP (event->any.window))
return event->type == GDK_EXPOSE;
/* Check that we think the event's window is viewable before
* delivering the event, to prevent suprises. We do this here
* at the last moment, since the event may have been queued