Bug 233542 - plasma panel not resizing properly when monitors are added/removed
Summary: plasma panel not resizing properly when monitors are added/removed
Status: RESOLVED DUPLICATE of bug 218686
Alias: None
Product: plasma4
Classification: Plasma
Component: multiscreen (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-06 22:03 UTC by Jason 'vanRijn' Kasper
Modified: 2010-10-19 17:08 UTC (History)
2 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 Jason 'vanRijn' Kasper 2010-04-06 22:03:45 UTC
Version:            (using KDE 4.3.1)
OS:                Linux
Installed from:    openSUSE RPMs

This was found during internal QA testing with OpenSUSE 11.2 guest at VMware. Internal bug #538890.

Here's the condensed repro steps, but see below for some additional diagnostics:

- start KDE and Plasma on the right hand monitor, at 1024x768 resolution (only one head/screen active at this point)
- change the resolution of the right hand monitor from 1024x768 to 1600x1200
- add a monitor to the left of the primary monitor so that you now have 2 heads, each @ 1600x1200, with the primary monitor being the one on the right still
- remove the secondary, left monitor so that there's only one head active (the primary, right one)
- change the resolution of the primary monitor back to 1024x768
- observe that although plasma is still active and running and responds to mouse clicks, etc., it has not resized its desktop size from 1600x1200 to 1024x768 and you therefore cannot see the bottom panel.

Additional/extended triage:

Host topology:
Left monitor: 1600x1200 @ -1600,0
Right monitor (primary): 1600x1200 @ 0,0

==== Test 1: The bug does not repro ====

~~~~~ Starting from the left monitor ~~~~~

user@linux-mwym:~> xdpyinfo -ext XINERAMA|tail
XINERAMA version 1.0 opcode: 129
  head #0: 1024x768 @ 0,0

user@linux-mwym:~> xdpyinfo |grep dimension
  dimensions: 1024x768 pixels (212x159 millimeters)

user@linux-mwym:~> xwininfo

xwininfo: Window id: 0x180009c "plasma-desktop"

  Absolute upper-left X: 0
  Absolute upper-left Y: 0
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 1024
  Height: 768
  Depth: 24
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutputColormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +0+0 -0+0 -0-0 +0-0
  -geometry 1024x768+0+0

~~~~~ Change resolution on the left monitor ~~~~~

user@linux-mwym:~> xdpyinfo -ext XINERAMA|tail
XINERAMA version 1.0 opcode: 129
  head #0: 1600x1200 @ 0,0

user@linux-mwym:~> xdpyinfo |grep dimension
  dimensions: 1600x1200 pixels (212x159 millimeters)

user@linux-mwym:~> xwininfo

xwininfo: Window id: 0x180009c "plasma-desktop"

  Absolute upper-left X: 0
  Absolute upper-left Y: 0
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 1600
  Height: 1200
  Depth: 24
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +0+0 -0+0 -0-0 +0-0
  -geometry 1600x1200+0+0

~~~~~ On both monitors ~~~~~

user@linux-mwym:~> xdpyinfo -ext XINERAMA|tail
XINERAMA version 1.0 opcode: 129
  head #0: 1600x1200 @ 0,0
  head #1: 1600x1200 @ 1600,0

user@linux-mwym:~> xdpyinfo |grep dimension
  dimensions: 3200x1200 pixels (212x159 millimeters)

user@linux-mwym:~> xwininfo

xwininfo: Window id: 0x180009c "plasma-desktop"

  Absolute upper-left X: 0
  Absolute upper-left Y: 0
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 1600
  Height: 1200
  Depth: 24
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +0+0 -1600+0 -1600-0 +0-0
  -geometry 1600x1200+0+0

~~~~~ Returned to one monitor on the left monitor and resize to 1024x768 ~~~~~

user@linux-mwym:~> xdpyinfo -ext XINERAMA|tail
XINERAMA version 1.0 opcode: 129
  head #0: 1024x768 @ 0,0

user@linux-mwym:~> xdpyinfo |grep dimension
  dimensions: 1024x768 pixels (212x159 millimeters)

user@linux-mwym:~> xwininfo

xwininfo: Window id: 0x180009c "plasma-desktop"

  Absolute upper-left X: 0
  Absolute upper-left Y: 0
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 1024
  Height: 768
  Depth: 24
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +0+0 -0+0 -0-0 +0-0
  -geometry 1024x768+0+0

===== Test 2: The bug does repro =====

~~~~~ Staring from the right monitor ~~~~~

user@linux-mwym:~> xdpyinfo -ext XINERAMA|tail
XINERAMA version 1.0 opcode: 129
  head #0: 1024x768 @ 0,0

user@linux-mwym:~> xdpyinfo |grep dimension
  dimensions: 1024x768 pixels (212x159 millimeters)

user@linux-mwym:~> xwininfo

xwininfo: Window id: 0x1e0009c "plasma-desktop"

  Absolute upper-left X: 0
  Absolute upper-left Y: 0
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 1024
  Height: 768
  Depth: 24
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +0+0 -0+0 -0-0 +0-0
  -geometry 1024x768+0+0

~~~~~ Change resolution on the right monitor ~~~~~

user@linux-mwym:~> xdpyinfo -ext XINERAMA|tail
XINERAMA version 1.0 opcode: 129
  head #0: 1600x1200 @ 0,0

user@linux-mwym:~> xdpyinfo |grep dimension
  dimensions: 1600x1200 pixels (212x159 millimeters)

user@linux-mwym:~> xwininfo

xwininfo: Window id: 0x1e0009c "plasma-desktop"

  Absolute upper-left X: 0
  Absolute upper-left Y: 0
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 1600
  Height: 1200
  Depth: 24
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +0+0 -0+0 -0-0 +0-0
  -geometry 1600x1200+0+0

~~~~~ Add second monitor to the left of primary ~~~~~

user@linux-mwym:~> xdpyinfo -ext XINERAMA|tail
XINERAMA version 1.0 opcode: 129
  head #0: 1600x1200 @ 1600,0
  head #1: 1600x1200 @ 0,0

user@linux-mwym:~> xdpyinfo |grep dimension
  dimensions: 3200x1200 pixels (212x159 millimeters)

user@linux-mwym:~> xwininfo

xwininfo: Window id: 0x1e0009c "plasma-desktop"

  Absolute upper-left X: 1600
  Absolute upper-left Y: 0
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 1600
  Height: 1200
  Depth: 24
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +1600+0 -0+0 -0-0 +1600-0
  -geometry 1600x1200-0+0

~~~~~ Remove secondary, left monitor and resize back to 1024x768 on the right monitor ~~~~~

user@linux-mwym:~> xdpyinfo -ext XINERAMA|tail
XINERAMA version 1.0 opcode: 129
  head #0: 1024x768 @ 0,0

user@linux-mwym:~> xdpyinfo |grep dimension
  dimensions: 1024x768 pixels (212x159 millimeters)

user@linux-mwym:~> xwininfo

xwininfo: Window id: 0x1e00093 "plasma-desktop"

  Absolute upper-left X: 0
  Absolute upper-left Y: 0
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 1600
  Height: 1200
  Depth: 24
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +0+0 --576+0 --576--432 +0--432
  -geometry 1600x1200+0+0
Comment 1 Jason 'vanRijn' Kasper 2010-04-08 01:57:16 UTC
Just wanted to update with a confirmation that this is still happening in KDE 4.4.2 from Ubuntu Lucid 10.04.
Comment 2 Beat Wolf 2010-10-19 17:08:50 UTC

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