mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
minimised windows are necessarily obscured.
2008-10-22 Thomas Thurman <tthurman@gnome.org> * src/core/window.c (meta_window_set_demands_attention): minimised windows are necessarily obscured. svn path=/trunk/; revision=3971
This commit is contained in:
parent
671b69a251
commit
f186d90dd3
@ -1,3 +1,8 @@
|
|||||||
|
2008-10-22 Thomas Thurman <tthurman@gnome.org>
|
||||||
|
|
||||||
|
* src/core/window.c (meta_window_set_demands_attention): minimised
|
||||||
|
windows are necessarily obscured.
|
||||||
|
|
||||||
2008-10-22 Thomas Thurman <tthurman@gnome.org>
|
2008-10-22 Thomas Thurman <tthurman@gnome.org>
|
||||||
|
|
||||||
Slight transformation of the x-macros used in keybindings
|
Slight transformation of the x-macros used in keybindings
|
||||||
|
@ -8062,6 +8062,10 @@ meta_window_set_demands_attention (MetaWindow *window)
|
|||||||
/* windows on other workspaces are necessarily obscured */
|
/* windows on other workspaces are necessarily obscured */
|
||||||
obscured = TRUE;
|
obscured = TRUE;
|
||||||
}
|
}
|
||||||
|
else if (window->minimized)
|
||||||
|
{
|
||||||
|
obscured = TRUE;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
meta_window_get_outer_rect (window, &candidate_rect);
|
meta_window_get_outer_rect (window, &candidate_rect);
|
||||||
@ -8086,22 +8090,27 @@ meta_window_set_demands_attention (MetaWindow *window)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* If the window's in full view, there's no point setting the flag. */
|
|
||||||
|
|
||||||
meta_topic (META_DEBUG_WINDOW_OPS,
|
|
||||||
"Not marking %s as needing attention because it's in full view\n",
|
|
||||||
window->desc);
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Otherwise, go ahead and set the flag. */
|
if (obscured)
|
||||||
|
{
|
||||||
meta_topic (META_DEBUG_WINDOW_OPS,
|
meta_topic (META_DEBUG_WINDOW_OPS,
|
||||||
"Marking %s as needing attention\n", window->desc);
|
"Marking %s as needing attention\n",
|
||||||
|
window->desc);
|
||||||
|
|
||||||
window->wm_state_demands_attention = TRUE;
|
window->wm_state_demands_attention = TRUE;
|
||||||
set_net_wm_state (window);
|
set_net_wm_state (window);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* If the window's in full view, there's no point setting the flag. */
|
||||||
|
|
||||||
|
meta_topic (META_DEBUG_WINDOW_OPS,
|
||||||
|
"Not marking %s as needing attention because "
|
||||||
|
"it's in full view\n",
|
||||||
|
window->desc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
meta_window_unset_demands_attention (MetaWindow *window)
|
meta_window_unset_demands_attention (MetaWindow *window)
|
||||||
|
Loading…
Reference in New Issue
Block a user