window: Fix corner case in set_demands_attention()
We only grant requests to set the demands-attention hint if the window is at least partially obscured; so for non-minimized windows on the active workspace, we check if any other window on the same workspace that is higher in the stack overlaps. However in the case of a sticky window, window->workspace is NULL, so we end up considering any non-sticky window on a different workspace. At this point we have already established that the window is showing on the active workspace, so use that to filter for windows that may overlap.
This commit is contained in:
parent
df90545258
commit
4e14bb9df3
1 changed files with 1 additions and 1 deletions
|
@ -6731,7 +6731,7 @@ meta_window_set_demands_attention (MetaWindow *window)
|
|||
other_window = stack->data;
|
||||
stack = stack->next;
|
||||
|
||||
if (meta_window_located_on_workspace (other_window, window->workspace))
|
||||
if (meta_window_located_on_workspace (other_window, workspace))
|
||||
{
|
||||
meta_window_get_frame_rect (other_window, &other_rect);
|
||||
|
||||
|
|
Loading…
Reference in a new issue