diff options
author | Lars R. Damerow <[email protected]> | 2024-02-08 18:00:03 -0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2024-02-14 01:55:50 +0100 |
commit | c6fb9cc87bec7dd7abcacc3fd1df080eda1fb6c1 (patch) | |
tree | b090c8a55e15d956db6ea71d80f500f694c74960 /COPYING | |
parent | 84be1dc64ffed125541d8ef845b0b58f5cd9bdb6 (diff) | |
download | marco-c6fb9cc87bec7dd7abcacc3fd1df080eda1fb6c1.tar.bz2 marco-c6fb9cc87bec7dd7abcacc3fd1df080eda1fb6c1.tar.xz |
workspace: ignore not_this_one if not in current workspace
When the active workspace is changed, marco figures out which window
should get focus by calling `focus_ancestor_or_top_window`. In some
cases that call might include a window that should not get focus as
`not_this_one`.
When `not_this_one` refers to a window, the function will check to see
if it has a parent, and if it does, it will ignore the new workspace's
`mru_list` and will focus that parent window. However, it doesn't check
to see if the parent window is actually on the new workspace. If the
parent isn't on the new workspace, focusing it will drag it over,
including the transient window that was supposed to be ignored. This
isn't the result a user would likely expect, and is made more confusing
by the parent window being minimized, stuck that way until the user
switches to another workspace and back.
This change makes `focus_ancestor_or_top_window` ignore the
`not_this_one` window if it isn't on the new workspace's `mru_list`.
Instead it will just search the new workspace's `mru_list` for a window
to focus.
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions