Keyboard focus mode causes special workspaces to pop up when closing modals
Description
Special workspaces are incorrectly popping up when closing DankModal or DankDashPopout (e.g., when closing the wallpaper selector). This appears to be caused by using WlrKeyboardFocus.Exclusive instead of WlrKeyboardFocus.OnDemand.
Affected Components
-
DankDashPopout.qml (line 21)
- File:
Modules/DankDash/DankDashPopout.qml - Current:
keyboardFocusMode: WlrKeyboardFocus.Exclusive - Should be:
keyboardFocusMode: WlrKeyboardFocus.OnDemand
- File:
-
DankModal.qml (line 91)
- File:
Modals/Common/DankModal.qml - Current:
WlrKeyboardFocus.Exclusive - Should be:
WlrKeyboardFocus.OnDemand
- File:
Steps to Reproduce
- Open DankDash wallpaper selector or any modal
- Close the modal/selector
- Observe special workspaces unexpectedly popping up
Proposed Fix
Change the keyboard focus mode from `Exclusive` to `OnDemand` in both files. This prevents the focus behavior from triggering special workspace visibility when the modal/popout closes.
Workaround
Temporary patches are available that apply this fix to the installed files, though they will be overwritten on update.
I have work to address this in the wip/bar-mask branch. Needs more testing and some bug fixes before another release
try this b5379a95fabbabd2950617af6b134c9f9c22234d