onlyquitonempty

Description

On the default keybinding of Alt-Shift-Q, it is possible to press it by accident, closing all your work. This patch makes it so dwm will only exit via quit() if no windows are open.

Because people may have different daemons, etc. open, you can configure the count considered to be ‘empty’ via EMPTY_WINDOW_COUNT.

Download

Author

index.md