blob: 839f1423c603fef1f227c6c80fed1ba6aaa3df6e (
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
31
32
|
# stickyfullscreen
## Description
This patch keeps a client fullscreen until the user drops it. It applies to
dwm 6.8.
Many games clear `_NET_WM_STATE_FULLSCREEN` themselves when they lose focus,
so switching tags or moving the pointer leaves the window tiled or windowed.
With this patch a clear that arrives while the client is not the selected
client is ignored, and `focus()` restores the fullscreen geometry when the
client is focused again. A clear from the focused client is still honoured, so
the game's own exit or Alt+Enter works as before.
## Configuration
The patch uses the existing `lockfullscreen` option in `config.h`. Set it to
0 to disable the behaviour. No new options are added.
## Testing
Applies and builds against dwm 6.8. Runtime tested under Xvfb: a fullscreen
clear sent while unfocused is ignored, and the same clear while focused is
honoured.
## Download
* [dwm-stickyfullscreen-6.8.diff](dwm-stickyfullscreen-6.8.diff)
## Author
* Daniel Guihot - [daniel@guihot.net](mailto:daniel@guihot.net)
|