ICCCM state normal for tiled windows

This commit is contained in:
vaxerski 2021-12-21 11:02:17 +01:00
parent c4d2aef448
commit 9936331077
2 changed files with 8 additions and 1 deletions

View file

@ -122,4 +122,10 @@ void EWMH::updateWindow(xcb_window_t win) {
const auto WORKSPACE = PWINDOW->getWorkspaceID(); const auto WORKSPACE = PWINDOW->getWorkspaceID();
xcb_change_property(g_pWindowManager->DisplayConnection, XCB_PROP_MODE_REPLACE, win, HYPRATOMS["_NET_WM_DESKTOP"], XCB_ATOM_CARDINAL, 32, 1, &WORKSPACE); xcb_change_property(g_pWindowManager->DisplayConnection, XCB_PROP_MODE_REPLACE, win, HYPRATOMS["_NET_WM_DESKTOP"], XCB_ATOM_CARDINAL, 32, 1, &WORKSPACE);
// ICCCM State Normal
if (!PWINDOW->getIsFloating()) {
long data[] = {XCB_ICCCM_WM_STATE_NORMAL, XCB_NONE};
xcb_change_property(g_pWindowManager->DisplayConnection, XCB_PROP_MODE_REPLACE, win, HYPRATOMS["_NET_WM_STATE"], HYPRATOMS["_NET_WM_STATE"], 32, 2, data);
}
} }

View file

@ -94,7 +94,8 @@ public:
// Docks // Docks
EXPOSED_MEMBER(Dock, bool, b); EXPOSED_MEMBER(Dock, bool, b);
EXPOSED_MEMBER(DockAlign, EDockAlign, e); EXPOSED_MEMBER(DockAlign, EDockAlign, e);
// todo: Transients
private: private: