aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Ewmh.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc
index 3f5bd86..7015faf 100644
--- a/src/Ewmh.cc
+++ b/src/Ewmh.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Ewmh.cc,v 1.3 2002/10/16 19:03:57 fluxgen Exp $ 22// $Id: Ewmh.cc,v 1.4 2002/10/16 23:32:17 fluxgen Exp $
23 23
24#include "Ewmh.hh" 24#include "Ewmh.hh"
25 25
@@ -44,18 +44,16 @@ Ewmh::~Ewmh() {
44void Ewmh::initForScreen(const BScreen &screen) { 44void Ewmh::initForScreen(const BScreen &screen) {
45 Display *disp = BaseDisplay::getXDisplay(); 45 Display *disp = BaseDisplay::getXDisplay();
46 46
47 XSetWindowAttributes attr; 47 Window wincheck = XCreateSimpleWindow(disp,
48 attr.override_redirect = True; 48 screen.getRootWindow(), 0, 0, 5, 5, 0, 0, 0);
49 Window wincheck = XCreateWindow(disp, screen.getRootWindow(), 49
50 0, 0, 1, 1, 0,
51 CopyFromParent, InputOnly, CopyFromParent,
52 CWOverrideRedirect, &attr);
53
54 if (wincheck != None) { 50 if (wincheck != None) {
55 m_windows.push_back(wincheck); 51 m_windows.push_back(wincheck);
56 52
57 XChangeProperty(disp, screen.getRootWindow(), m_net_supporting_wm_check, XA_WINDOW, 32, 53 XChangeProperty(disp, screen.getRootWindow(), m_net_supporting_wm_check, XA_WINDOW, 32,
58 PropModeReplace, (unsigned char *) &wincheck, 1); 54 PropModeReplace, (unsigned char *) &wincheck, 1);
55 XChangeProperty(disp, wincheck, m_net_supporting_wm_check, XA_WINDOW, 32,
56 PropModeReplace, (unsigned char *) &wincheck, 1);
59 57
60 XChangeProperty(disp, wincheck, m_net_wm_name, XA_STRING, 8, 58 XChangeProperty(disp, wincheck, m_net_wm_name, XA_STRING, 8,
61 PropModeReplace, (unsigned char *) "Fluxbox", strlen("Fluxbox")); 59 PropModeReplace, (unsigned char *) "Fluxbox", strlen("Fluxbox"));