From 90a5772644ca553d553fe3815d2c98c51cf0079c Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 20 Nov 2015 14:16:46 -0500 Subject: 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). --- libLumina/LuminaX11.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libLumina/LuminaX11.cpp') 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 -- cgit