Skip to content

Commit

Permalink
SnapAttraction: fix coord detection
Browse files Browse the repository at this point in the history
Don't use per-monitor configuration when performing snapattraction
calculations; windows can span across monitors.

Fixes GH issue #61
  • Loading branch information
ThomasAdam committed May 3, 2020
1 parent 58773ed commit 7975922
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions fvwm/move_resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -1980,14 +1980,11 @@ static void DoSnapAttract(

m = fw->m;

if (m == NULL) {
if (m == NULL)
m = monitor_get_current();
scr_w = m->virtual_scr.MyDisplayWidth;
scr_h = m->virtual_scr.MyDisplayHeight;
} else {
scr_w = m->si->w;
scr_h = m->si->h;
}

scr_w = m->virtual_scr.MyDisplayWidth;
scr_h = m->virtual_scr.MyDisplayHeight;

/*
* Snap grid handling
Expand Down

0 comments on commit 7975922

Please sign in to comment.