Bug 337382 - Panel size is wrong after login
Summary: Panel size is wrong after login
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (other bugs)
Version First Reported In: master
Platform: unspecified Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
: 337838 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-07-11 16:53 UTC by Luiz Angelo De Luca
Modified: 2014-10-15 23:13 UTC (History)
4 users (show)

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


Attachments
screenshot (1.64 MB, image/png)
2014-07-11 16:54 UTC, Luiz Angelo De Luca
Details
The panel dimension is not keeped after logout/login (1.23 MB, image/png)
2014-09-25 20:41 UTC, Valerio De Angelis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luiz Angelo De Luca 2014-07-11 16:53:53 UTC
Hello,

I have two monitor with different width. Since some days, when I login in plasma kf5, the panel from the smaller screen starts resized to the bigger screen width. I'll attach a screenshot.

If I move the panel to another edge and back to the bottom, it resizes correctly.


Reproducible: Always
Comment 1 Luiz Angelo De Luca 2014-07-11 16:54:23 UTC
Created attachment 87696 [details]
screenshot
Comment 2 David Edmundson 2014-07-11 17:19:11 UTC
Oh, that's interesting.Confirming (since there's a nice screenshot)

> Since some days
 Do you know if this is a newly introduced bug and it used to work before?


Can I have the output of xrandr -q and I'll try to reproduce this at my computer.
Comment 3 Luiz Angelo De Luca 2014-07-11 17:52:38 UTC
It worked OK some days ago. I cannot say exactly which commit as I update from SUSE OBS every time I login (and that does not occur everyday)

 Screen 0: minimum 8 x 8, current 2960 x 1050, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 connected primary 1680x1050+1280+0 (normal left inverted right x axis y axis) 474mm x 296mm
   1680x1050      59.9*+   60.0  
   1280x1024      75.0     60.0  
   1280x960       60.0  
   1152x864       75.0  
   1024x768       75.0     70.1     60.0  
   800x600        75.0     72.2     60.3     56.2  
   640x480        75.0     72.8     59.9  
DP-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm
   1280x1024      60.0*+   75.0  
   1280x960       60.0  
   1152x864       75.0  
   1024x768       75.0     70.1     60.0  
   800x600        75.0     72.2     60.3     56.2  
   640x480        75.0     72.8     59.9  
DP-1 disconnected (normal left inverted right x axis y axis)

However, before KDE, in login screen, my screen are swapped. DP-0 is right of DVI-I-1. I configure it using a xinitrc script like this:

/etc/X11/xinit/xinitrc.d/xrandr.sh:
xrandr --output DVI-I-1 --auto
xrandr --output DVI-I-1 --primary
xrandr --output DP-0 --auto
xrandr --output DP-0 --left-of DVI-I-1
Comment 4 Martin Klapetek 2014-07-16 09:19:23 UTC
Maybe a duplicate of/effect of bug 335710 ?
Comment 5 Luiz Angelo De Luca 2014-07-16 23:10:47 UTC
Possibly the effect of the fix but this is a different beast. Panels are different (not only in size). They where not swapped.
Comment 6 Bernd Steinhauser 2014-07-27 15:20:24 UTC
Can confirm this, have that, too. I think it's not the same as bug 335710, as at least on my setup, the panels are not swapped (can tell since they contain different stuff).
See also bug 337838.
Comment 7 David Edmundson 2014-07-31 15:49:33 UTC
*** Bug 337838 has been marked as a duplicate of this bug. ***
Comment 8 Valerio De Angelis 2014-09-25 20:41:07 UTC
Created attachment 88840 [details]
The panel dimension is not keeped after logout/login
Comment 9 Valerio De Angelis 2014-09-25 20:43:54 UTC
Comment on attachment 88840 [details]
The panel dimension is not keeped after logout/login

This bug affects me too, see the screenshot.
Also in my case there are two screen with different size, the laptop and the monitor. The panel in the laptop is always in the correct size every login, where the other panel looks like emulate the dimension of the laptop's panel, both in width and height (I notice this because the monitor's panel is bigger also in height).
Comment 10 Marco Martin 2014-10-08 10:51:56 UTC
does this still happen in master?
Comment 11 Valerio De Angelis 2014-10-08 12:01:00 UTC
Hi. 
Unfortunately I installed plasma 5.0.2 through a dedicated repository, not compiling the source code by myself.
Comment 12 Bernd Steinhauser 2014-10-08 15:35:16 UTC
Yes, this is definitely still valid.
Comment 13 Marco Martin 2014-10-09 14:10:47 UTC
Git commit 036ddf1b77aa296e68a25f3e76e9d754da2e45c4 by Marco Martin.
Committed on 09/10/2014 at 14:03.
Pushed by mart into branch 'Plasma/5.1'.

event compress panel resize when many hints change

reduces drastically size dancing
still some issues on the plasmashell part
CBUG:339207

M  +21   -34   desktoppackage/contents/views/Panel.qml

http://commits.kde.org/plasma-desktop/036ddf1b77aa296e68a25f3e76e9d754da2e45c4
Comment 14 Marco Martin 2014-10-09 14:55:04 UTC
Git commit ad39d0defdc7accc3bf9620214b4936fd716e4d2 by Marco Martin.
Committed on 09/10/2014 at 14:50.
Pushed by mart into branch 'master'.

positionPanel() just positions

panel jumps around less when resizing/controlling
CBUG:339207

M  +6    -3    shell/panelview.cpp

http://commits.kde.org/plasma-workspace/ad39d0defdc7accc3bf9620214b4936fd716e4d2
Comment 15 Marco Martin 2014-10-09 14:56:24 UTC
Git commit 00df10848ce24b197e4d471ecc0821a15abd66b7 by Marco Martin.
Committed on 09/10/2014 at 14:52.
Pushed by mart into branch 'Plasma/5.1'.

don't bind the panel size

it causes the root item size to flicker when reiszing the panel
Related: bug 339207

M  +1    -2    desktoppackage/contents/views/Panel.qml

http://commits.kde.org/plasma-desktop/00df10848ce24b197e4d471ecc0821a15abd66b7
Comment 16 Bernd Steinhauser 2014-10-10 05:31:31 UTC
Seems to work fine for me now, thanks.
Comment 17 Marco Martin 2014-10-10 12:54:02 UTC
Git commit ec9fffcc6a4931183c6f776fb951af7974f532a6 by Marco Martin.
Committed on 09/10/2014 at 14:50.
Pushed by mart into branch 'Plasma/5.1'.

positionPanel() just positions

panel jumps around less when resizing/controlling
CBUG:339207

M  +6    -3    shell/panelview.cpp

http://commits.kde.org/plasma-workspace/ec9fffcc6a4931183c6f776fb951af7974f532a6
Comment 18 Luiz Angelo De Luca 2014-10-14 18:45:56 UTC
I still get panels over the screen size but it is mostly the Bug 335710 and not this one.
Comment 19 Luiz Angelo De Luca 2014-10-15 23:13:57 UTC
Since my last update, the swapped panel were, in fact, correctly resized. :-)