Bug 406312 - Set middle monitor as primary, new window still open on left monitor
Summary: Set middle monitor as primary, new window still open on left monitor
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 5.15.3
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 398690 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-04-07 19:57 UTC by natrius+kde
Modified: 2019-04-08 19:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description natrius+kde 2019-04-07 19:57:21 UTC
It basically looks like the setting as "primary" is ignored. When i set a monitor as primary i expect that all new windows are opened on the primary - what  else is the setting for?

As my third monitor on the left is usally a non active tv and new windows are opened all the time on the left, it is annoying to have to move them at first.
Comment 1 Martin Flöser 2019-04-08 05:48:42 UTC
Primary has no meaning for window placement.
Comment 2 David Edmundson 2019-04-08 08:29:29 UTC
*** Bug 398690 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2019-04-08 13:15:03 UTC
But maybe it should? That's what the bug reporter is asking for, after all.
Comment 4 Martin Flöser 2019-04-08 13:48:27 UTC
Well, No. This is the most common misunderstanding of X11. Primary has no meaning for window managers. According to xrandr it's only an indicator for the desktop shell where to put panels. As it has no meaning for window managers KWin doesn't read the information at all. Instead KWin has the concept of active screen: windows open on the screen with the active window or mouse pointer depending on setting. And that makes more sense than a randomly configured screen.

Unfortunately this hardly ever works as windows position themselves. So it's all mood anyway.

What we could do is to explicitly write in the UI that primary has no meaning for window positioning.
Comment 5 Martin Flöser 2019-04-08 13:49:53 UTC
And of course we cannot change KWin as it's feature frozen for X11 and on Wayland there's no primary screen.
Comment 6 natrius+kde 2019-04-08 14:01:46 UTC
As it is the most common misunderstand there should be done something about this. I found more posts mentioning and what so ever in forums, reddit and somewhere else, basically everybody mentioning the same thing. A lot of people seem to think "primary" = "First time a window opens is on primary". 

So basically i have to look into why my windows do not open where my mouse is. It could be the program and it could be kwin, if i understand this correctly. 

But yes, put something like "Primary (This has no effect on the position of new windows)" or something like this.
Comment 7 Martin Flöser 2019-04-08 19:19:14 UTC
If you want to check: xwininfo on the opened window. In most cases it has a user specified position which means by ICCCM that the window manager must honor it. If you as a user hasn't specified that position (e.g. last saved position) it's a bug in the application. If the application uses an application specified position the window manager is allowed to overwrite it and KWin does so.