Bug 467100 - Primary Display should be indexed 0
Summary: Primary Display should be indexed 0
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: rules (show other bugs)
Version: 6.0.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-09 09:42 UTC by Dominik Kummer
Modified: 2024-03-20 10:37 UTC (History)
3 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 Dominik Kummer 2023-03-09 09:42:54 UTC
SUMMARY
Window rules that want to keep specific windows on primary screen are impossible to define on changing-display setups (eg notebook with multiple screens at the office, but single screen outdoors)
Comment 1 Dominik Kummer 2023-03-09 09:45:09 UTC
PS: especially if additional displays are positioned lefthand from primary display.
Comment 2 David Edmundson 2023-03-16 21:53:39 UTC
How does changing the starting index help?
Comment 3 Bug Janitor Service 2023-03-31 03:45:26 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Dominik Kummer 2023-03-31 16:26:39 UTC
(In reply to David Edmundson from comment #2)
> How does changing the starting index help?

Sorry for my late answer! I missed the mail notification. Probably the issue is fixed with the latest update, I'll watch it.

I experienced the issue as follows:

My simple Setup: [monitor] -- [primary notebook display]

Some window rules place application windows depending if monitor is connected or not.
Most applications I want to place on my primary display, which are by default on screen index 0.
As additional screens are connected, I consider them secondary and tertiary for example (index 1 and 2)
Once I had to disconnect and reconnect the monitor for some reason.
So it happened that suddenly my primary applications where placed on my secondary monitor.
I did reconnect the monitor several times, and the window rule indices where interpreted randomly.
I think it has something to do with the new taskbar display configuration feature (unify, extend left, extend right)
because as I played arround with its settings, the display indices changed back as expected.

So I assume that primary display should be guaranteed to be index 0. Index 1, 2, n should extend 
to right or left depending on the taskbar display configuration, right?

Maybe you can reproduce the bug, I'll keep an eye on it and report. thanks!
Comment 5 Bug Janitor Service 2023-04-15 03:45:43 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Dominik Kummer 2024-03-20 10:37:38 UTC
Unfortunately after the latest update to Plasma 6 my window rules are broken again regarding Screen Indices.

My main display is marked as primary display, but window rules do not refer to it by index 0.

For example I take my notebook with me without additional displays, thats where I expect my primary display to be indexed 0.
As I come home and connect additional displays I still expect my window rules to work.