! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Some dialogs open on wrong monitor
Status:
RESOLVED: MOVED

Comments

Description bruceg 2018-12-10 22:15:55 CET
I have a dual-monitor setup managed by xrandr (both screens are part of the same X server) running xfwm4-4.12.5. When some applications that are running on the second monitor pop up a dialog, it appears on the primary monitor. Chromium (versions 70 and 71) exhibits this behavior, but neither Firefox, LibreOffice, nor xfce4-terminal do.

I bisected this down to the following commit:

commit e9d1de4c9bf4512760a512ecab7411ac08165f2a
Author: Olivier Fourdan <fourdan@xfce.org>
Date:   Thu Mar 23 11:39:04 2017 +0100

    placement: Use primary monitor as default

Reverting the above commit on top of the xfce-4.12 branch of xfwm4 and reinstalling resolves the problem for me.
Comment 1 Olivier Fourdan editbugs 2018-12-11 08:08:16 CET
Right, but that commit was to fix bug 13454 so reverting it would reintroduce the initial issue.

Thing is, there is no right or wrong monitor when the client sets no coordinate nor sets a transient relationship with its parent... xfwm4 has to pick a monitor, and that happens to be the primary monitor now, whereas it was the "current" (*) monitor before.

(*) current being the one where the pointer currently resides.
Comment 2 Theo Linkspfeifer editbugs 2019-07-07 01:02:47 CEST
When opening xfdesktop-settings via right-click on the desktop, the window will appear on the primary monitor instead. This is rather unexpected and does not happen with marco (MATE's window manager).
Comment 3 Olivier Fourdan editbugs 2019-07-08 09:14:12 CEST
But that's exactly bug 13454, so you just cannot have this and its opposite...

The window manager is free to place window wherever it wants, and it's now xfwm4 policy to place dialogs without parents initially centered in the middle of a multi-monitor setup to the center of the primary monitor.
Comment 4 Git Bot editbugs 2019-07-08 21:20:36 CEST
Olivier Fourdan referenced this bugreport in commit 619929ba532c6a1d392c9584e9858f46549a3787

placement: Place on current monitor by default

https://git.xfce.org/xfce/xfwm4/commit?id=619929ba532c6a1d392c9584e9858f46549a3787
Comment 5 Theo Linkspfeifer editbugs 2019-07-08 21:51:05 CEST
That commit fixes the window placement in my use case.
Comment 6 Git Bot editbugs 2020-05-29 12:24:13 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfwm4/-/issues/312.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #14959

Reported by:
bruceg
Reported on: 2018-12-10
Last modified on: 2020-05-29

People

Assignee:
Olivier Fourdan
CC List:
1 user

Version

Version:
4.12.0

Attachments

Additional information