Bug 339554 - Plasma moves panels to screen 1 every time it restarts (still)
Summary: Plasma moves panels to screen 1 every time it restarts (still)
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: master
Platform: Kubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-01 04:59 UTC by Mike C. Fletcher
Modified: 2014-11-24 16:33 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.1.1
Sentry Crash Report:


Attachments
plasma-org.kde.plasma.desktop-appletsrc (5.50 KB, text/plain)
2014-10-03 14:41 UTC, Mike C. Fletcher
Details
Plasmashellrc (1.26 KB, text/plain)
2014-10-03 14:42 UTC, Mike C. Fletcher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike C. Fletcher 2014-10-01 04:59:21 UTC
Note, while bug 333054 is marked duplicate of (closed) bug 333085, I'm seeing the behaviour in bug 333054 with a Neon 5 build as of 2014-09-30.  That is, the behaviour does not appear to have been fixed.

In particular, a single panel, configured to display on screen 2 of a (static) 2-screen setup, is always repositioned onto screen one at plasma login. This occurs even if screen 2 is selected as the primary display in system settings (note that bug 333054 stated that it was the "primary screen" to which the panel moved).

Clicking on the panel's edit hamburger menu causes the editing menu to appear over the *original* (screen 2) position, so it seems *something* is retaining the configuration, but is being overridden.

Again, no hardware or connections are changing, just logging in/out.

Reproducible: Always

Steps to Reproduce:
1. Remove the default panel from screen 1
2. Add a default panel to screen 2
3. Logout and Login


Actual Results:  
Panel is displayed on screen 1

Expected Results:  
Panel should retain the configured position on screen 2
Comment 1 Marco Martin 2014-10-01 08:14:43 UTC
can you paste here the files
~/.config/plasma-org.kde.plasma.desktop-appletsrc
~/.config/plasmashellrc
?
Comment 2 Marco Martin 2014-10-01 08:15:01 UTC
also, is there a "primary" screen?
Comment 3 Marco Martin 2014-10-01 08:57:49 UTC
Git commit 89045253569bcc03119d2f3d316013822ccdc8cc by Marco Martin.
Committed on 01/10/2014 at 08:55.
Pushed by mart into branch 'master'.

set the screen as soon as possible

set the screen in the constructor, to have the right one before
doing anything with the window, accessing the config or parsing
QML

M  +5    -1    shell/desktopview.cpp
M  +1    -1    shell/desktopview.h
M  +4    -1    shell/panelview.cpp
M  +1    -1    shell/panelview.h
M  +2    -5    shell/shellcorona.cpp

http://commits.kde.org/plasma-workspace/89045253569bcc03119d2f3d316013822ccdc8cc
Comment 4 Mike C. Fletcher 2014-10-02 00:50:12 UTC
Neither of the files requested exists on the machine. This is a Kubuntu Neon5 build, so I'm guessing that there's a different directory for the config files.

Yes, there's a primary screen, it was set to screen 2, but the effect was the same when screen 1 was set to primary.

The effect is no longer seen with current Neon 5, so it seems the commits above got picked up and added to the Neon 5 build last night.
Comment 5 Mike C. Fletcher 2014-10-03 14:41:26 UTC
Created attachment 88941 [details]
plasma-org.kde.plasma.desktop-appletsrc

Appletsrc config, from ~/.project-neon5-kde/config
Comment 6 Mike C. Fletcher 2014-10-03 14:42:51 UTC
Created attachment 88942 [details]
Plasmashellrc

Plasmashellrc from ~/.project-neon5-kde/config
Comment 7 Mike C. Fletcher 2014-10-03 14:43:49 UTC
On login this morning the panel again jumped back to screen1, so apparently the bug wasn't as fixed as it seemed.
Comment 8 Valerio De Angelis 2014-10-03 16:21:49 UTC
This happens to me also, Fedora 20 with Plasma 5.0.2

However, when I unlock the widget and click on the panel settings to manually move it on the correct screen, the setting's window appears on the right screen instead of where the panel is. 
Even for the notification's window, it appears in the right screen on the right position. So it looks like the system knows who is the correct screen for everything except the panel.
it is enough click on "Screen Edge" to see the panel immediately appear in the bottom area of the correct screen, but with the dimension of the other screen (in my case, the smallest one).
Comment 9 Valerio De Angelis 2014-10-08 22:22:51 UTC
I did a video that shows what happens in my case...
http://youtu.be/j1UFUT13bd0
Comment 10 Aleix Pol 2014-11-24 16:33:21 UTC
Should be fixed by eefca4383e92e7b15d6cdda6882376d02605273f in plasma-workspace.