[Xfce4-commits] [xfce/xfwm4] 01/01: placement: Place on current monitor by default
noreply at xfce.org
noreply at xfce.org
Mon Jul 8 21:20:31 CEST 2019
This is an automated email from the git hooks/post-receive script.
o l i v i e r p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfwm4.
commit 619929ba532c6a1d392c9584e9858f46549a3787
Author: Olivier Fourdan <fourdan at xfce.org>
Date: Mon Jul 8 21:15:16 2019 +0200
placement: Place on current monitor by default
Bug: 14959
Place dialogs without parent on the current monitor, i.e. the monitor
where the pointer currently resides.
Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
src/placement.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/placement.c b/src/placement.c
index c947597..614f78f 100644
--- a/src/placement.c
+++ b/src/placement.c
@@ -773,7 +773,8 @@ clientInitPosition (Client * c)
position = (c->size->flags & (PPosition | USPosition));
n_monitors = myScreenGetNumMonitors (c->screen_info);
- xfwm_get_primary_monitor_geometry (screen_info->gscr, &rect, TRUE);
+ getMouseXY (screen_info, &msx, &msy);
+ myScreenFindMonitorAtPoint (screen_info, msx, msy, &rect);
is_transient = clientIsTransient (c);
if (position || is_transient || (c->type & (WINDOW_TYPE_DONT_PLACE | WINDOW_TYPE_DIALOG)))
@@ -800,8 +801,6 @@ clientInitPosition (Client * c)
}
else
{
- getMouseXY (screen_info, &msx, &msy);
- myScreenFindMonitorAtPoint (screen_info, msx, msy, &rect);
place = TRUE;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list