From 572fae56b30e86c686b61aa1e31ca9d0803cf313 Mon Sep 17 00:00:00 2001 From: Daniel Guihot Date: Wed, 16 Sep 2026 05:22:42 +1000 Subject: dwm 6.8 focusguard patch --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..471fb86 --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# focusguard + +## Description + +This patch keeps focus on a fullscreen client when a new window appears. It +applies to dwm 6.8. + +`manage()` calls `focus(NULL)` for every new client on the selected monitor, +so Steam update dialogs, chat windows and notifications pull focus off a +running fullscreen game. Many games then drop fullscreen. With this patch the +fullscreen client stays selected and focused. The new client is still +attached, arranged and mapped, and can be reached after the game leaves +fullscreen or by switching tags. + +## 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: with a +fullscreen client focused, a new window no longer becomes +`_NET_ACTIVE_WINDOW`. + +## Download + +* [dwm-focusguard-6.8.diff](dwm-focusguard-6.8.diff) + +## Author + +* Daniel Guihot - [daniel@guihot.net](mailto:daniel@guihot.net) -- cgit v1.3.1