aboutsummaryrefslogtreecommitdiff
path: root/libLumina
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-11-20 14:16:46 -0500
committerKen Moore <moorekou@gmail.com>2015-11-20 14:16:46 -0500
commit90a5772644ca553d553fe3815d2c98c51cf0079c (patch)
treebb2bd9811e4301ef4683caf81e24697ee9635d38 /libLumina
parentQuick checkpoint for the window manager: NOT STABLE - crashes on window close... (diff)
downloadlumina-90a5772644ca553d553fe3815d2c98c51cf0079c.tar.gz
lumina-90a5772644ca553d553fe3815d2c98c51cf0079c.tar.bz2
lumina-90a5772644ca553d553fe3815d2c98c51cf0079c.zip
Fix up the WM a bit more - now it can open/close windows without issues (still very rough - does not do things like fine-grained stacking, minimization, and such yet).
Diffstat (limited to 'libLumina')
-rw-r--r--libLumina/LuminaX11.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libLumina/LuminaX11.cpp b/libLumina/LuminaX11.cpp
index 6cbc670d..fea15a8f 100644
--- a/libLumina/LuminaX11.cpp
+++ b/libLumina/LuminaX11.cpp
@@ -1170,6 +1170,7 @@ bool LXCB::WM_ManageWindow(WId win, bool needsmap){
XCB_EVENT_MASK_STRUCTURE_NOTIFY | \
XCB_EVENT_MASK_FOCUS_CHANGE)
//return whether the window is/should be managed
+ if(WM_ICCCM_GetClass(win).isEmpty() ){ return false; }
xcb_get_window_attributes_cookie_t cookie = xcb_get_window_attributes(QX11Info::connection(), win);
xcb_get_window_attributes_reply_t *attr = xcb_get_window_attributes_reply(QX11Info::connection(), cookie, NULL);
if(attr == 0){ return false; } //could not get attributes of window
bgstack15