summaryrefslogtreecommitdiffstats
path: root/x11-libs/gtk+/files/gtk+-1.2.10-cvs-expose.patch
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /x11-libs/gtk+/files/gtk+-1.2.10-cvs-expose.patch
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'x11-libs/gtk+/files/gtk+-1.2.10-cvs-expose.patch')
-rw-r--r--x11-libs/gtk+/files/gtk+-1.2.10-cvs-expose.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/x11-libs/gtk+/files/gtk+-1.2.10-cvs-expose.patch b/x11-libs/gtk+/files/gtk+-1.2.10-cvs-expose.patch
new file mode 100644
index 0000000..7fa625a
--- /dev/null
+++ b/x11-libs/gtk+/files/gtk+-1.2.10-cvs-expose.patch
@@ -0,0 +1,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;