[hackers] [dwm][PATCH] manage: disable fullscreen on the old window when a new window is opened

From: Ruben Gonzalez <neorubenx_AT_gmail.com>
Date: Sat, 14 Mar 2026 03:53:50 +0200

When a new window is managed (spawned), it becomes the focused client.
But, If the previously focused window was in fullscreen mode, it
remains fullscreen and completely covers the new window, leading to
"invisible focus" where the user types into an invisible terminal.

Steps to reproduce:
1. Open a terminal (terminal A) and make the terminal fullscreen.
2. Open a new terminal B (Mod+Shift+Enter)
3. You can see that visually nothing happens; terminal A is still fullscreen.
4. Try tying the command touch /tmp/foo.txt (you will see nothing in terminal A)
5. Exit fullscreen on the current terminal A.
6. You will see that the command "touch" was received and executed by
the new terminal B.

This fix ensures that the fullscreen state is removed from the
previously focused window when a new client is managed on the same
monitor, keeping the new window visible.
Received on Sat Mar 14 2026 - 02:53:50 CET

This archive was generated by hypermail 2.3.0 : Sun Mar 15 2026 - 19:12:36 CET