Skip to content

Commit

Permalink
RaiseLower: ignore windows on other monitors
Browse files Browse the repository at this point in the history
When deducing if the windows in the stack ring should be compared
against, only consider those windows on the same monitor as the current
window.

Fixes #86
  • Loading branch information
ThomasAdam committed May 24, 2020
1 parent 929471a commit 9c8ccf2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fvwm/stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -1511,6 +1511,7 @@ static Bool is_on_top_of_layer_ignore_rom(FvwmWindow *fw)
{
FvwmWindow *t;
Bool ontop = True;
struct monitor *m = fw->m;

if (IS_SCHEDULED_FOR_DESTROY(fw))
{
Expand All @@ -1523,6 +1524,9 @@ static Bool is_on_top_of_layer_ignore_rom(FvwmWindow *fw)
}
for (t = fw->stack_prev; t != &Scr.FvwmRoot; t = t->stack_prev)
{
if (t->m != m)
continue;

if (t->layer > fw->layer)
{
break;
Expand Down

0 comments on commit 9c8ccf2

Please sign in to comment.