diff options
author | Danny Baumann <dannybaumann@web.de> | 2008-09-15 20:40:37 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2008-09-15 20:40:37 +0200 |
commit | 6a25f01d4129f83c4f3fe8ba5009705b00f543fe (patch) | |
tree | c1e706b46f9fd4b1a29a3f1bf6f82bfbecf239a7 /plugins | |
parent | 07bfd59f0ff0fe41e4da7b0e7ea6d92286b25b4a (diff) |
Set window class and name on switcher window.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/switcher.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/switcher.c b/plugins/switcher.c index d1470340..13be8ada 100644 --- a/plugins/switcher.c +++ b/plugins/switcher.c @@ -605,6 +605,7 @@ switchInitiate (CompScreen *s, Display *dpy = s->display->display; XSizeHints xsh; XWMHints xwmh; + XClassHint xch; Atom state[4]; int nState = 0; XSetWindowAttributes attr; @@ -629,6 +630,9 @@ switchInitiate (CompScreen *s, xwmh.flags = InputHint; xwmh.input = 0; + xch.res_name = "compiz"; + xch.res_class = "switcher-window"; + attr.background_pixel = 0; attr.border_pixel = 0; attr.colormap = XCreateColormap (dpy, s->root, visual, @@ -644,7 +648,7 @@ switchInitiate (CompScreen *s, XSetWMProperties (dpy, ss->popupWindow, NULL, NULL, programArgv, programArgc, - &xsh, &xwmh, NULL); + &xsh, &xwmh, &xch); state[nState++] = s->display->winStateAboveAtom; state[nState++] = s->display->winStateStickyAtom; |