mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
stack: Don't try to focus hidden windows
A window may be hidden even if not minimized itself, for instance when an ancestor is minimized. As meta_window_focus() will refuse to actually focus the window in that case, don't pick it in the first place. https://bugzilla.gnome.org/show_bug.cgi?id=751715
This commit is contained in:
parent
351f444f9d
commit
4a69a2a632
@ -1273,16 +1273,13 @@ get_default_focus_window (MetaStack *stack,
|
|||||||
if (window->unmaps_pending > 0)
|
if (window->unmaps_pending > 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (window->minimized)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (window->unmanaging)
|
if (window->unmanaging)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!(window->input || window->take_focus))
|
if (!(window->input || window->take_focus))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (workspace != NULL && !meta_window_located_on_workspace (window, workspace))
|
if (!meta_window_should_be_showing (window))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (must_be_at_point && !window_contains_point (window, root_x, root_y))
|
if (must_be_at_point && !window_contains_point (window, root_x, root_y))
|
||||||
|
Loading…
Reference in New Issue
Block a user