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.
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.
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).
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.
Olivier Fourdan referenced this bugreport in commit 619929ba532c6a1d392c9584e9858f46549a3787 placement: Place on current monitor by default https://git.xfce.org/xfce/xfwm4/commit?id=619929ba532c6a1d392c9584e9858f46549a3787
That commit fixes the window placement in my use case.
-- 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