Bug 465718 - Primary screen not respected by panel
Summary: Primary screen not respected by panel
Status: RESOLVED NOT A BUG
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.27.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-14 16:41 UTC by Vit Pelcak
Modified: 2023-02-23 23:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of example (2.04 MB, image/png)
2023-02-14 16:41 UTC, Vit Pelcak
Details
Misleading description (21.31 KB, image/png)
2023-02-14 18:46 UTC, Vit Pelcak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vit Pelcak 2023-02-14 16:41:37 UTC
Created attachment 156231 [details]
Screenshot of example

SUMMARY
***
Panel is opened on screen not set as primary. Actually I have to fiddle with priorities of screen to chase the panel to appear on the right place. See the screenshot.
***


STEPS TO REPRODUCE
1. I have 3 screens (see screenshot)
2. Set primary screen on one of those

OBSERVED RESULT
Setting screen as primary will lead to panel not appearing there.

EXPECTED RESULT
Panle appears on the screen art the top of priority list.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-02-14 17:09:40 UTC
The panel isn't actually bound to the Primary screen. However the desktop containment (which includes its panel) is. So the expectation in Plasma 5.27 is that when you change the screen that's marked as primary, the whole desktop containment (including any panels on that desktop containment) move to the new primary screen.

Based on your screenshot, this is working, judging the presence of icons on the screen that's marked as Primary. What seems to be happening is that your Panel is on the desktop containment of a non-Primary screen. So if you want to make your panel always live on the Primary screen as well, you'll need to manually move the panel to that screen. Thereafter, it will move as the Primary screen changes.
Comment 2 Vit Pelcak 2023-02-14 18:46:41 UTC
Created attachment 156240 [details]
Misleading description

Aha. thanks for the explanation.

However then the descriptive text is misleading.
Comment 3 Nate Graham 2023-02-17 16:21:02 UTC
The description seems accurate to me. What about it is misleading?
Comment 4 Vit Pelcak 2023-02-17 18:33:16 UTC
(In reply to Nate Graham from comment #3)
> The description seems accurate to me. What about it is misleading?

Well it says that primary screen is the place where panel is. Which may be not the case and was not for me.
Please note, I didn't deliberately move the panel. It must have been default setting.
Comment 5 Nate Graham 2023-02-17 18:35:23 UTC
The primary screen is the place where your primary desktop containment and its panel (if it has one) will live and follow. But you didn't have a panel on the desktop containment that follows the primary screen. So technically the description was accurate, though I can see how it's rather technical and requires some understanding about how the system works.

What would have helped you understand it better? Can you suggest an alternative wording?
Comment 6 Vit Pelcak 2023-02-17 18:49:29 UTC
Maybe not mentioning panel at all?

Or something like:

This determines which where is primary containment with icons where you can also put your panel in. Then the panel will automatically move to whatever screen you set as primary.
Comment 7 Nate Graham 2023-02-23 23:29:06 UTC
Git commit e450f11c595718136f28e2f43df9135bbf8a8b11 by Nate Graham.
Committed on 23/02/2023 at 23:28.
Pushed by ngraham into branch 'master'.

kcm: slightly re-word "primary screen" explanation for clarity

Emphasize that it's the desktop that's bound to the monitor, and any
panels in that desktop come along for the ride. The old wording could be
interpreted to mean that any old panel moved along with it.

M  +1    -1    kcm/package/contents/ui/OutputPanel.qml

https://invent.kde.org/plasma/kscreen/commit/e450f11c595718136f28e2f43df9135bbf8a8b11