mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
Use meta_window_located_on_workspace() in more places
https://bugzilla.gnome.org/show_bug.cgi?id=691744
This commit is contained in:
parent
d8eb47e2b7
commit
df15843407
@ -847,10 +847,9 @@ meta_window_place (MetaWindow *window,
|
||||
{
|
||||
MetaWindow *w = tmp->data;
|
||||
|
||||
if (meta_window_showing_on_its_workspace (w) &&
|
||||
w != window &&
|
||||
(window->workspace == w->workspace ||
|
||||
window->on_all_workspaces || w->on_all_workspaces))
|
||||
if (w != window &&
|
||||
meta_window_showing_on_its_workspace (w) &&
|
||||
meta_window_located_on_workspace (w, window->workspace))
|
||||
windows = g_list_prepend (windows, w);
|
||||
|
||||
tmp = tmp->next;
|
||||
|
@ -10129,9 +10129,7 @@ meta_window_set_demands_attention (MetaWindow *window)
|
||||
other_window = stack->data;
|
||||
stack = stack->next;
|
||||
|
||||
if (other_window->on_all_workspaces ||
|
||||
window->on_all_workspaces ||
|
||||
other_window->workspace == window->workspace)
|
||||
if (meta_window_located_on_workspace (other_window, window->workspace))
|
||||
{
|
||||
meta_window_get_outer_rect (other_window, &other_rect);
|
||||
|
||||
|
@ -1292,8 +1292,7 @@ focus_ancestor_or_top_window (MetaWorkspace *workspace,
|
||||
ancestor = NULL;
|
||||
meta_window_foreach_ancestor (not_this_one, record_ancestor, &ancestor);
|
||||
if (ancestor != NULL &&
|
||||
(ancestor->on_all_workspaces ||
|
||||
ancestor->workspace == workspace) &&
|
||||
meta_window_located_on_workspace (ancestor, workspace) &&
|
||||
meta_window_showing_on_its_workspace (ancestor))
|
||||
{
|
||||
meta_topic (META_DEBUG_FOCUS,
|
||||
|
Loading…
Reference in New Issue
Block a user