Bug 360942 - Misplaced menus and tooltips after 2 screen size changes
Summary: Misplaced menus and tooltips after 2 screen size changes
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.6.3
Platform: Kubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-24 15:00 UTC by Laurent Bonnaud
Modified: 2016-12-25 20:48 UTC (History)
3 users (show)

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


Attachments
Virtual desktop tooltip (1.24 MB, image/png)
2016-03-24 15:01 UTC, Laurent Bonnaud
Details
Systray tooltip (1.25 MB, image/png)
2016-03-24 15:01 UTC, Laurent Bonnaud
Details
K menu is unusable (1.21 MB, image/png)
2016-03-24 15:02 UTC, Laurent Bonnaud
Details
Screenshot (820.69 KB, image/png)
2016-04-26 09:06 UTC, Laurent Bonnaud
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Bonnaud 2016-03-24 15:00:18 UTC
After plugging and un-plugging a video projector with lower resolution, all tooltips are placed in the wrong place.


Reproducible: Always

Steps to Reproduce:
1. Connect a video projector with lower resolution.
2. Setup both screens in "clone" mode. The plasma desktop is then reduced in size.
3. Unplug the projector.
4. The plasma desktop is restored to its previous size.


Actual Results:  
Tooltips are now displayed as if the desktop had its reduced size.

Expected Results:  
Tooltips should be displayed according to the restored screen size.
Comment 1 Laurent Bonnaud 2016-03-24 15:01:08 UTC
Created attachment 98059 [details]
Virtual desktop tooltip
Comment 2 Laurent Bonnaud 2016-03-24 15:01:54 UTC
Created attachment 98060 [details]
Systray tooltip
Comment 3 Laurent Bonnaud 2016-03-24 15:02:31 UTC
Created attachment 98061 [details]
K menu is unusable
Comment 4 Laurent Bonnaud 2016-04-26 08:58:51 UTC
Since my initial report I upgraded my system to Ubuntu 16.04 and Neon packages:

Package: plasma-workspace
Version: 4:5.6.3+p16.04+git20160426.0444-0

and the bug is still there.
Comment 5 Laurent Bonnaud 2016-04-26 09:03:00 UTC
Here is a simpler way to reproduce the bug that does not need a video projector:

0. my screen uses 1920x1080 pixels:
$ xrandr 
[...]
   1920x1080     60.04*+  40.02    59.93  

1. reduce the resolution:
$ xrandr -s 1680x1050

2. set the resolution to the initial value:
$ xrandr -s 0

Now menus are slightly shifted and difficult to use.
Comment 6 Laurent Bonnaud 2016-04-26 09:06:06 UTC
Created attachment 98608 [details]
Screenshot

On this screenshot note the gap between the "triangle" button and the menu.  Accessing the menu is possible but difficult.
Comment 7 David Edmundson 2016-04-29 15:38:56 UTC
Can you include the output of xrandr -q ?
Comment 8 Laurent Bonnaud 2016-04-30 15:26:29 UTC
> Can you include the output of xrandr -q ?

Here it is:

$ xrandr -q
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
LVDS1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080     60.04*+  40.02    59.93  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      60.00  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1368x768      60.00  
   1360x768      59.80    59.96  
   1152x864      60.00  
   1280x720      60.00  
   1024x768      60.00  
   1024x576      60.00  
   960x540       60.00  
   800x600       60.32    56.25  
   864x486       60.00  
   640x480       59.94  
   720x405       60.00  
   640x360       60.00  
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 disconnected (normal left inverted right x axis y axis)
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Comment 9 Laurent Bonnaud 2016-12-25 20:48:59 UTC
I cannot reproduce this bug in plasma 5.8.4.
Thanks for the fix!