From e8ae40e072b83020fdd1a6f7d46d3513f2efe84e Mon Sep 17 00:00:00 2001
From: fluxgen <fluxgen>
Date: Wed, 16 Oct 2002 23:32:17 +0000
Subject: wm support check on checkwindow

---
 src/Ewmh.cc | 14 ++++++--------
 1 file 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 @@
 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 // DEALINGS IN THE SOFTWARE.
 
-// $Id: Ewmh.cc,v 1.3 2002/10/16 19:03:57 fluxgen Exp $
+// $Id: Ewmh.cc,v 1.4 2002/10/16 23:32:17 fluxgen Exp $
 
 #include "Ewmh.hh" 
 
@@ -44,18 +44,16 @@ Ewmh::~Ewmh() {
 void Ewmh::initForScreen(const BScreen &screen) {
 	Display *disp = BaseDisplay::getXDisplay();
 
-	XSetWindowAttributes attr;
-	attr.override_redirect = True;
-	Window wincheck = XCreateWindow(disp, screen.getRootWindow(),
-		0, 0, 1, 1, 0,
-		CopyFromParent, InputOnly, CopyFromParent,
-		CWOverrideRedirect, &attr);
-	
+	Window wincheck = XCreateSimpleWindow(disp,
+		screen.getRootWindow(), 0, 0, 5, 5, 0, 0, 0);
+
 	if (wincheck != None) {
 		m_windows.push_back(wincheck);
 		
 		XChangeProperty(disp, screen.getRootWindow(), m_net_supporting_wm_check, XA_WINDOW, 32,
 			PropModeReplace, (unsigned char *) &wincheck, 1);
+		XChangeProperty(disp, wincheck, m_net_supporting_wm_check, XA_WINDOW, 32,
+			PropModeReplace, (unsigned char *) &wincheck, 1);
 
 		XChangeProperty(disp, wincheck, m_net_wm_name, XA_STRING, 8,
 			PropModeReplace, (unsigned char *) "Fluxbox", strlen("Fluxbox"));
-- 
cgit v0.11.2