updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / xcompmgr-dana / send-event.patch
blob868b56127cf455ed99618ef23ef4665db5a907d0
1 This patch is necessary to use real transparency with tint2.
2 It can also be useful for any application which needs to know
3 if there is a compositing manager running.
4 See http://bugs.freedesktop.org/show_bug.cgi?id=26090
7 diff -Nur xcompmgr-dana/xcompmgr.c xcompmgr-dana.new/xcompmgr.c
8 --- xcompmgr-dana/xcompmgr.c 2010-01-25 21:53:13.000000000 +0100
9 +++ xcompmgr-dana.new/xcompmgr.c 2010-06-05 09:42:38.000000000 +0200
10 @@ -1991,6 +1991,21 @@
11 free(buf);
13 XSetSelectionOwner (dpy, a, w, 0);
15 + /* Send a ClientMessage notification so other apps
16 + can detect the compositing manager started */
17 + XClientMessageEvent ev;
18 + ev.type = ClientMessage;
19 + ev.window = RootWindow (dpy, scr);
20 + ev.message_type = a;
21 + ev.format = 32;
22 + ev.data.l[0] = CurrentTime;
23 + ev.data.l[1] = a;
24 + ev.data.l[2] = w;
25 + ev.data.l[3] = 0;
26 + ev.data.l[4] = 0;
27 + XSendEvent(dpy, RootWindow (dpy, scr), False, StructureNotifyMask, (XEvent*)&ev);
31 int