Skip to content

Commit

Permalink
updateTagState should actually update NetWMDesktop on the client wind…
Browse files Browse the repository at this point in the history
…ow to work with taskbars and tools like alttab
  • Loading branch information
codic12 committed May 30, 2024
1 parent a6ef682 commit a8da0ce
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/wm.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1137,6 +1137,16 @@ proc updateClientList*(self: Wm) =
proc updateTagState*(self: Wm) =
for client in self.clients:
for i, tag in client.tags:
if tag:
discard self.dpy.XChangeProperty(
client.window,
self.netAtoms[NetWMDesktop],
XaCardinal,
32,
PropModeReplace,
cast[cstring](unsafeAddr i),
1
)
if self.tags[i] and tag:
discard self.dpy.XMapWindow client.frame.window
break
Expand Down

0 comments on commit a8da0ce

Please sign in to comment.