summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2007-08-02 00:52:18 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2007-08-02 00:52:18 +0000
commit01a752b87af8542572047d1eb4ff06c90d436364 (patch)
treeb438f32c67777f8a9d3483f2ed4218878d60ba59 /x11-misc/xcompmgr/files
parent(#185705) Stop Xephyr from crashing when applications quit. (diff)
downloadgentoo-2-01a752b87af8542572047d1eb4ff06c90d436364.tar.gz
gentoo-2-01a752b87af8542572047d1eb4ff06c90d436364.tar.bz2
gentoo-2-01a752b87af8542572047d1eb4ff06c90d436364.zip
(#186879) Add a patch to update opacity on unmapped windows.
(Portage version: 2.1.3_rc9)
Diffstat (limited to 'x11-misc/xcompmgr/files')
-rw-r--r--x11-misc/xcompmgr/files/digest-xcompmgr-1.1.3-r13
-rw-r--r--x11-misc/xcompmgr/files/fix-unmapped-window-opacity.patch42
2 files changed, 45 insertions, 0 deletions
diff --git a/x11-misc/xcompmgr/files/digest-xcompmgr-1.1.3-r1 b/x11-misc/xcompmgr/files/digest-xcompmgr-1.1.3-r1
new file mode 100644
index 000000000000..2ca3cbc4a744
--- /dev/null
+++ b/x11-misc/xcompmgr/files/digest-xcompmgr-1.1.3-r1
@@ -0,0 +1,3 @@
+MD5 44ccbafa8484b7e0c00e5c83cd915adc xcompmgr-1.1.3.tar.gz 79840
+RMD160 65c7c045a0c1361b0dfa346cdc73439ad0db0f2c xcompmgr-1.1.3.tar.gz 79840
+SHA256 5d4b1fb063876c7b3883e45b69d3a07845a62a132c8a9994de16bf8d6c199d44 xcompmgr-1.1.3.tar.gz 79840
diff --git a/x11-misc/xcompmgr/files/fix-unmapped-window-opacity.patch b/x11-misc/xcompmgr/files/fix-unmapped-window-opacity.patch
new file mode 100644
index 000000000000..2eeac7c81fb2
--- /dev/null
+++ b/x11-misc/xcompmgr/files/fix-unmapped-window-opacity.patch
@@ -0,0 +1,42 @@
+From: Mark Tiefenbruck <mark@fluxbox.org>
+Date: Thu, 25 Jan 2007 20:05:02 +0000 (-0500)
+Subject: Bug #9762: Fix opacity changes on unmapped windows.
+X-Git-Url: http://gitweb.freedesktop.org/?p=xorg/app/xcompmgr.git;a=commitdiff;h=08c9ac6cbb3405cfa4f0b60d7014c734a1990047
+
+Bug #9762: Fix opacity changes on unmapped windows.
+---
+
+--- a/xcompmgr.c
++++ b/xcompmgr.c
+@@ -1165,6 +1165,9 @@ repair_win (Display *dpy, win *w)
+ w->damaged = 1;
+ }
+
++static unsigned int
++get_opacity_prop (Display *dpy, win *w, unsigned int def);
++
+ static void
+ map_win (Display *dpy, Window id, unsigned long sequence, Bool fade)
+ {
+@@ -1179,6 +1182,10 @@ map_win (Display *dpy, Window id, unsign
+ /* This needs to be here or else we lose transparency messages */
+ XSelectInput (dpy, id, PropertyChangeMask);
+
++ /* This needs to be here since we don't get PropertyNotify when unmapped */
++ w->opacity = get_opacity_prop (dpy, w, OPAQUE);
++ determine_mode (dpy, w);
++
+ #if CAN_DO_USABLE
+ w->damage_bounds.x = w->damage_bounds.y = 0;
+ w->damage_bounds.width = w->damage_bounds.height = 0;
+@@ -1467,10 +1474,7 @@ add_win (Display *dpy, Window id, Window
+ new->borderClip = None;
+ new->prev_trans = 0;
+
+- /* moved mode setting to one place */
+- new->opacity = get_opacity_prop (dpy, new, OPAQUE);
+ new->windowType = determine_wintype (dpy, new->id);
+- determine_mode (dpy, new);
+
+ new->next = *p;
+ *p = new;