summaryrefslogtreecommitdiff
path: root/plugins/switcher
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-07-08 09:55:35 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-07-08 09:55:35 -0500
commitffa7d89359818ebecf66aae9068f702e9ccf7139 (patch)
tree7d35fee9567a7aeb7e8d11b64eb4ca7b732be3b7 /plugins/switcher
parent179f94a43e2316a3d69baf5768893505f8830027 (diff)
downloadcompiz-with-glib-mainloop-ffa7d89359818ebecf66aae9068f702e9ccf7139.tar.gz
compiz-with-glib-mainloop-ffa7d89359818ebecf66aae9068f702e9ccf7139.tar.bz2
switcher: Set XClassHint for popup window.
Diffstat (limited to 'plugins/switcher')
-rw-r--r--plugins/switcher/src/switcher.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/switcher/src/switcher.cpp b/plugins/switcher/src/switcher.cpp
index 6d0f866..5bc4011 100644
--- a/plugins/switcher/src/switcher.cpp
+++ b/plugins/switcher/src/switcher.cpp
@@ -403,6 +403,7 @@ SwitchScreen::initiate (SwitchWindowSelection selection,
Display *dpy = screen->dpy ();
XSizeHints xsh;
XWMHints xwmh;
+ XClassHint xch;
Atom state[4];
int nState = 0;
XSetWindowAttributes attr;
@@ -427,6 +428,9 @@ SwitchScreen::initiate (SwitchWindowSelection selection,
xwmh.flags = InputHint;
xwmh.input = 0;
+ xch.res_name = (char *)"compiz";
+ xch.res_class = (char *)"switcher-window";
+
attr.background_pixel = 0;
attr.border_pixel = 0;
attr.colormap = XCreateColormap (dpy, screen->root (), visual,
@@ -442,7 +446,7 @@ SwitchScreen::initiate (SwitchWindowSelection selection,
XSetWMProperties (dpy, popupWindow, NULL, NULL,
programArgv, programArgc,
- &xsh, &xwmh, NULL);
+ &xsh, &xwmh, &xch);
state[nState++] = Atoms::winStateAbove;
state[nState++] = Atoms::winStateSticky;