diff options
author | Olivier Fourdan <fourdan@xfce.org> | 2022-01-18 19:55:28 +0100 |
---|---|---|
committer | Olivier Fourdan <fourdan@xfce.org> | 2022-01-18 19:57:07 +0100 |
commit | 776cf13b21d9daa0d5ce6c02bed891cbefd1c92d (patch) | |
tree | 23d3ae77f395b6a2a593f168845761b64d5757a4 /src | |
parent | 90465cc657f55ef28e5d7a0522d6129332bf3355 (diff) | |
download | xfwm4-776cf13b21d9daa0d5ce6c02bed891cbefd1c92d.tar.gz |
placement: Windows on different screens cannot overlap
If two X11 clients run on two different X11 screen, they cannot overlap
even though their coordinates match.
Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
Closes: https://gitlab.xfce.org/xfce/xfwm4/-/issues/84
Diffstat (limited to 'src')
-rw-r--r-- | src/placement.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/placement.c b/src/placement.c index c69f1eb90..9987c89ff 100644 --- a/src/placement.c +++ b/src/placement.c @@ -188,6 +188,11 @@ clientsHaveOverlap (Client *c1, Client *c2) GdkRectangle win1; GdkRectangle win2; + if (c1->screen_info != c2->screen_info) + { + return FALSE; + } + set_rectangle (&win1, frameExtentX (c1), frameExtentY (c1), |