summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-02-19 01:21:27 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-02-19 01:22:27 +0800
commit90ba08b759121a54be07fa70e0cf824b966cd0b9 (patch)
treeb3cf5ce56a8ed3f171ca2c721458ebcf54a8d2e7
parent9201fd68d8e6e75ecb3eee170f070ea939606c03 (diff)
downloadstaticswitcher-90ba08b759121a54be07fa70e0cf824b966cd0b9.tar.gz
staticswitcher-90ba08b759121a54be07fa70e0cf824b966cd0b9.tar.bz2
Make the switcher window override redirect
-rw-r--r--src/staticswitcher.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/staticswitcher.cpp b/src/staticswitcher.cpp
index f7358d3..726f406 100644
--- a/src/staticswitcher.cpp
+++ b/src/staticswitcher.cpp
@@ -253,12 +253,13 @@ StaticSwitchScreen::createPopup ()
attr.border_pixel = 0;
attr.colormap = XCreateColormap (dpy, ::screen->root (), visual,
AllocNone);
+ attr.override_redirect = 1;
popupWindow =
XCreateWindow (dpy, ::screen->root (),
-1, -1, 1, 1, 0,
32, InputOutput, visual,
- CWBackPixel | CWBorderPixel | CWColormap, &attr);
+ CWBackPixel | CWBorderPixel | CWColormap | CWOverrideRedirect, &attr);
XSetWMProperties (dpy, popupWindow, NULL, NULL,
programArgv, programArgc,