Skip to content

Commit

Permalink
fix(ewmh): workspace off-by-one (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelhf authored Aug 23, 2023
1 parent af46418 commit 855ef84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ewmh/ewmh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void EWMH::updateWindow(xcb_window_t win) {
if (!PWINDOW || win < 1)
return;

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

// ICCCM State Normal
Expand Down

0 comments on commit 855ef84

Please sign in to comment.