aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 1b5f699ff23988b027f0f385ad93223356c0744d (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
33
34
# 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 was ignored, fullscreen geometry returned on
focus, and the same clear while focused was honoured. Setting
`lockfullscreen` to 0 disabled the geometry restore and allowed the
unfocused clear.

## Download

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

## Author

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