Skip to content

Commit 855ef84

Browse files
authored
fix(ewmh): workspace off-by-one (#116)
1 parent af46418 commit 855ef84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ewmh/ewmh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void EWMH::updateWindow(xcb_window_t win) {
136136
if (!PWINDOW || win < 1)
137137
return;
138138

139-
const auto WORKSPACE = PWINDOW->getWorkspaceID();
139+
const auto WORKSPACE = PWINDOW->getWorkspaceID() - 1; // because xorgs counts from 0, part 2
140140
xcb_change_property(g_pWindowManager->DisplayConnection, XCB_PROP_MODE_REPLACE, win, HYPRATOMS["_NET_WM_DESKTOP"], XCB_ATOM_CARDINAL, 32, 1, &WORKSPACE);
141141

142142
// ICCCM State Normal

0 commit comments

Comments
 (0)