blob: 7f32fd8855a2cc154ea386fdb124f87f7dc20922 (
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
|
# pointerlock
## Description
This patch keeps focus on a fullscreen client when the mouse pointer crosses
a monitor edge. It applies to dwm 6.8.
By default, `enternotify()` and `motionnotify()` change the selected monitor
and focus whenever the pointer moves onto another monitor, so a fullscreen
game loses focus from mouse movement alone. With this patch both handlers
return early while a fullscreen client is selected. Keyboard focus changes,
tag switching and `focusmon` still work.
## 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 testing of the monitor crossing is
pending; Xvfb would not provide two distinct Xinerama head positions on the
development machine.
## Download
* [dwm-pointerlock-6.8.diff](dwm-pointerlock-6.8.diff)
## Author
* Daniel Guihot - [daniel@guihot.net](mailto:daniel@guihot.net)
|