aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 4beea987b59050a246665c7c7a57e34f09df8214 (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
# deiconify

## Description

This patch restores `WM_STATE` to `NormalState` when a fullscreen client
receives focus. It applies to dwm 6.8.

Some Steam/Proton games and native games set `WM_STATE` to `IconicState` when
they lose focus. dwm can map and focus the window again while the client still
considers itself minimized, leaving a black window. The patch adds two lines
to `setfocus()` so a returning fullscreen client resumes drawing.

Only fullscreen clients are changed. Normal clients keep their existing
`WM_STATE` behaviour. No configuration is added.

## Testing

Applies and builds against dwm 6.8. Runtime tested under Xvfb by forcing a
fullscreen client to `IconicState`, switching tags, and checking that it
returned as `NormalState`. The test also covered fullscreen clients with the
`InputHint` set to false and confirmed that normal clients were unchanged.

## Download

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

## Author

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