Bug 323056 - Panels don't remember what screen they are associated with (multi-screen) (using kscreen)
Summary: Panels don't remember what screen they are associated with (multi-screen) (us...
Status: RESOLVED DUPLICATE of bug 356225
Alias: None
Product: plasma4
Classification: Plasma
Component: panel (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-31 16:58 UTC by Thiago Macieira
Modified: 2018-01-23 20:15 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
plasma-desktoprc (10.28 KB, text/plain)
2013-07-31 17:07 UTC, Thiago Macieira
Details
plasma-desktop-appletsrc with both monitors connected (11.03 KB, text/plain)
2013-07-31 17:08 UTC, Thiago Macieira
Details
plasma-desktop-appletsrc after the second monitor was disconnected (11.03 KB, text/plain)
2013-07-31 17:09 UTC, Thiago Macieira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago Macieira 2013-07-31 16:58:25 UTC
Plasma does not remember which screen a Panel is connected to when using kscreen. This is a new problem, it wasn't happening before kscreen. Either way, Dan says it's a Plasma bug.

Whenever you disconnect a monitor, the panel(s) that existed in that monitor are moved to the remaining screen(s). Often, that means they end up on top of or under another panel, which means you can't reach one without moving the other.

Reproducible: Always

Steps to Reproduce:
1. Ensure kscreen's kded module is running
2. Connect a second monitor (kscreen will extend the screen there)
  Note: I have a secondary screen to the left of the primary. I don't know if this makes a difference.
3. Add a panel to the secondary screen
4. Disconnect second monitor
  kscreen will reduce the desktop to one screen
Actual Results:  
The panel that was added to the second screen is now on the first screen

Expected Results:  
The panel that was on the second screen should have disappeared and stayed hidden.

Additionally:

5. Reconnect the second monitor (kscreen will extend the desktop there)

Actual results:
Panels remain where they were. Nothing is moved to the second screen.

Expected results:
Panel that was originally on the second screen should reappear.
Comment 1 Thiago Macieira 2013-07-31 17:07:40 UTC
Created attachment 81487 [details]
plasma-desktoprc
Comment 2 Thiago Macieira 2013-07-31 17:08:26 UTC
Created attachment 81488 [details]
plasma-desktop-appletsrc with both monitors connected
Comment 3 Thiago Macieira 2013-07-31 17:09:04 UTC
Created attachment 81489 [details]
plasma-desktop-appletsrc after the second monitor was disconnected
Comment 4 Thiago Macieira 2013-07-31 17:09:58 UTC
plasma-desktoprc diff (old = two monitors; new = one monitor)

--- /tmp/plasma-desktoprc       2013-07-31 10:05:38.864483547 -0700
+++ plasma-desktoprc    2013-07-31 10:06:58.394972755 -0700
@@ -583,14 +583,14 @@
 size=910,512
 
 [PlasmaViews][64]
-Migrations=
+Migrations=0
 panelVisibility=0
 
 [PlasmaViews][64][Horizontal1920]
 offset=0
 
 [PlasmaViews][64][Sizes]
-lastsize=1920
+lastsize=1366
 
 [PlasmaViews][64][Sizes][Horizontal1366]
 max=1366,27
@@ -736,7 +736,6 @@
 [ViewIds]
 3=1
 55=3
-60=66
 87=64
Comment 5 Thiago Macieira 2013-07-31 17:10:23 UTC
plasma-desktop-appletsrc diff (old = two monitors, new = one monitor)

--- /tmp/plasma-desktop-appletsrc       2013-07-31 10:05:38.864483547 -0700
+++ plasma-desktop-appletsrc    2013-07-31 10:06:58.387973063 -0700
@@ -565,20 +565,20 @@
 activityId=
 desktop=-1
 formfactor=2
-geometry=0,-93,1920,27
+geometry=0,-93,1366,27
 immutability=1
 lastDesktop=-1
-lastScreen=1
+lastScreen=0
 location=4
 plugin=panel
-screen=1
+screen=0
 zvalue=0
 
 [Containments][87][ActionPlugins]
 RightButton;NoModifier=contextmenu
 
 [Containments][87][Applets][89]
-geometry=0,2,1896,25
+geometry=0,2,1342,25
 immutability=1
 plugin=tasks
 zvalue=0
@@ -600,8 +600,8 @@
 Order=0
 
 [Containments][87][Configuration]
-maximumSize=1920,27
-minimumSize=1920,27
+maximumSize=1366,27
+minimumSize=1366,27
 
 [General]
 immutability=1
Comment 6 Daniel Vrátil 2013-07-31 17:29:28 UTC
I managed to reproduce the problem. Curiously, it can't be reproduced when primary monitor is the left one and the right one is disabled, but it can be reliably reproduced with Thiago's setup (primary being right of secondary).
Comment 7 Steven Franzen 2014-03-26 16:48:52 UTC
(In reply to comment #6)
> I managed to reproduce the problem. Curiously, it can't be reproduced when
> primary monitor is the left one and the right one is disabled, but it can be
> reliably reproduced with Thiago's setup (primary being right of secondary).

Well, I have my secondary screen to the right of my primary, and I can reproduce it just fine. However, it happens to me only in the following cases: 
1) Disabling the second screen through the KCM (not just removing the cable), or
2) Shutting down with two screens connected, then booting without the second screen (with session store enabled).

I'm guessing these are just the same situation; the result is that any windows or panels that were on the secondary screen are moved back to the primary. This seems like the sane thing to do for windows, but I would like any panels/widgets to be tied to the secondary screen only.
Comment 8 felipesabrahao 2017-12-05 19:56:52 UTC
Confirmed here on openSUSE Tumbleweed.
Comment 9 Nate Graham 2018-01-23 20:15:57 UTC
Duping to 356225, which has more attention and is in a Plasma 5 product.

*** This bug has been marked as a duplicate of bug 356225 ***