mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 21:35:58 +01:00
ICCCM state normal for tiled windows
This commit is contained in:
parent
c4d2aef448
commit
9936331077
2 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -95,6 +95,7 @@ public:
|
||||||
EXPOSED_MEMBER(Dock, bool, b);
|
EXPOSED_MEMBER(Dock, bool, b);
|
||||||
EXPOSED_MEMBER(DockAlign, EDockAlign, e);
|
EXPOSED_MEMBER(DockAlign, EDockAlign, e);
|
||||||
|
|
||||||
|
// todo: Transients
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue