[compiz] Patch: switcher's window is a splash window

Stjepan Glavina stjepang at gmail.com
Thu Dec 28 13:14:04 PST 2006


Hi,

I made a simple patch which makes switcher's window a splash window
(_NET_WM_WINDOW_TYPE_SPLASH). This way I can easily add effects for it.
The window is a splash window, so why not use this type instead of
Unknown? Beryl's switcher window is a Splash window too. Is there a
reason why Compiz uses Uknown for it?

Patch:
--- switcher.c   2006-12-28 10:14:52.000000000 +0100 
+++ switcher_new.c   2006-12-28 10:16:40.000000000 +0100 
@@ -799,6 +799,13 @@ 
           XA_ATOM, 32, PropModeReplace, 
           (unsigned char *) state, nState); 
     } 
+    
+   Atom type; 
+   type = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_SPLASH", 0); 
+   XChangeProperty(dpy, ss->popupWindow, 
+               XInternAtom (dpy, "_NET_WM_WINDOW_TYPE", 0), 
+               XA_ATOM, 32, PropModeReplace, 
+               unsigned char *)&type, 1); 
  
     if (!ss->grabIndex) 
    ss->grabIndex = pushScreenGrab (s, s->invisibleCursor, "switcher");

-- 
Stjepan



More information about the compiz mailing list