summaryrefslogtreecommitdiffstats
path: root/x11-libs/gtk+/files/gtk+-1.2.10-cvs-expose.patch
blob: 7fa625aad3f53dc250ad1487a4a0e563d8c7e376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- gtk+-1.2.10/gdk/gdkevents.c.expose	Sun Dec  3 17:02:49 2000
+++ gtk+-1.2.10/gdk/gdkevents.c	Wed Feb 13 17:53:38 2002
@@ -383,6 +383,7 @@
 struct _GdkExposeInfo
 {
   Window window;
+  Window toplevel_window;
   gboolean seen_nonmatching;
 };
 
@@ -401,7 +402,9 @@
    * expose events.
    */
   if (xevent->xany.type != Expose && 
-      xevent->xany.type != GravityNotify)
+      xevent->xany.type != GravityNotify &&
+      (xevent->xany.type != ConfigureNotify ||
+       xevent->xany.window == info->toplevel_window))
     {
       info->seen_nonmatching = TRUE;
     }
@@ -429,6 +432,7 @@
   GdkEvent event;
 
   info.window = xevent->xany.window;
+  info.toplevel_window = GDK_WINDOW_XWINDOW (gdk_window_get_toplevel (window));
   info.seen_nonmatching = FALSE;
   
   rect1.x = xevent->xexpose.x;