diff options
| author | Daniel Guihot | 2026-09-16 06:18:28 +1000 |
|---|---|---|
| committer | Daniel Guihot | 2026-09-16 06:18:49 +1000 |
| commit | b79b0e587eb85f4ab37cf954c84c9e6730faabe0 (patch) | |
| tree | 7abf530c44eccd574b79d780ba9d6b2fb208be0a /README.md | |
| parent | e0bb47559a2913c3b24c289a1471209321acca91 (diff) | |
| download | dwm-fullscreenhook-main.tar.gz dwm-fullscreenhook-main.zip | |
Update the root property on focus and fullscreen changes. Tags,
client exits, and multiple fullscreen clients now remain correct.
Diffstat (limited to '')
| -rw-r--r-- | README.md | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -5,21 +5,21 @@ This patch publishes the active fullscreen window on the root window so other programs can react to it. It applies to dwm 6.8. -dwm sets `_DWM_FULLSCREEN` to the window id of the fullscreen client when it -enters fullscreen, and removes the property when it leaves or is unmanaged. A -compositor, notification daemon or GameMode helper can watch it with: +dwm sets `_DWM_FULLSCREEN` to the window id of the selected fullscreen client. +It removes the property when the selected client is not fullscreen. Focus and +fullscreen changes update the property, so it remains correct across tags, +monitors, client exits, and multiple fullscreen clients. A compositor, +notification daemon or GameMode helper can watch it with: xprop -root -spy _DWM_FULLSCREEN No configuration and no spawned commands. -Assumes one fullscreen client at a time. With two, the property tracks the -most recent one to enter. - ## Testing -Applies and builds against dwm 6.8. Runtime tested under Xvfb: the property -is set on enter and cleared on exit and on unmanage. +Applies and builds against dwm 6.8. Runtime tested under Xvfb. Tests covered +fullscreen entry and exit, tag changes, selecting a normal client, and +falling back to another fullscreen client after the active one was destroyed. ## Download |
