aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 3018956e4ee8bf6912d77ab5905e1a878efa760a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# fullscreenhook

## Description

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 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.

## Testing

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

* [dwm-fullscreenhook-6.8.diff](dwm-fullscreenhook-6.8.diff)

## Author

* Daniel Guihot - [daniel@guihot.net](mailto:daniel@guihot.net)