Skip to content

No-input WM_TAKE_FOCUS windows hanging and focus fixes

Marco Trevisan requested to merge 3v1n0/mutter:wm-take-focus-improvements into master

Ensure we stop looping when looking for a valid input window to focus, trying to focus all the take-focus windows first, and eventually focusing the first valid input window we have in the stack.


2nd commit (commit 5f8d967c at the time of writing) can be actually squashed, so I'm adding it here just to show the quickest way to fix the hanging, but IMHO isn't covering all the cases that the metatest included in commit 55c86ab0 is underlining.

Closes #660 (closed)

Edited by Marco Trevisan

Merge request reports