Bug 346181 - K menu, context menus, system tray popups not displayed (or displayed off-screen) after an external monitor is plugged in
Summary: K menu, context menus, system tray popups not displayed (or displayed off-scr...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-multiscreen (show other bugs)
Version: 5.12.3
Platform: Ubuntu Linux
: NOR major
Target Milestone: 1.0
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks: 328593
  Show dependency treegraph
 
Reported: 2015-04-14 18:26 UTC by Dima Ryazanov
Modified: 2021-09-15 04:36 UTC (History)
15 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of a panel tooltip appearing on the wrong screen (3.62 MB, image/png)
2015-04-14 18:27 UTC, Dima Ryazanov
Details
attachment-26513-0.html (2.66 KB, text/html)
2016-01-04 00:42 UTC, Daniel Boles
Details
schreenshot showing items in wrong side (1.85 MB, image/png)
2018-03-07 04:59 UTC, David Guerrero
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dima Ryazanov 2015-04-14 18:26:19 UTC
I have an external monitor to the right of my laptop's monitor, set up as the primary screen. When I configured it originally, everything worked as expected. However, after I unplugged it and plugged it back in, the plasma panel is not displaying any popups - K menu, right-click menus, system tray popups. The mouseover tooltips do appear - but on the wrong screen. (So I suspect that the popups appear, too, but completely off the screen).

Here's the xrandr output:

Screen 0: minimum 8 x 8, current 3926 x 1440, maximum 32767 x 32767
LVDS1 connected 1366x768+0+672 (normal left inverted right x axis y axis) 293mm x 164mm
   1366x768       60.0*+   40.0  
   1360x768       59.8     60.0  
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
DP1 connected primary 2560x1440+1366+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440      60.0*+
   1920x1200      59.9  
   1920x1080      60.0     60.0     50.0     59.9     24.0     24.0  
   1920x1080i     60.1     50.0     60.0  
   1600x1200      60.0  
   1680x1050      60.0  
   1280x1024      75.0     60.0  
   1280x800       59.8  
   1152x864       75.0  
   1280x720       60.0     50.0     59.9  
   1024x768       75.1     60.0  
   800x600        75.0     60.3  
   720x576        50.0  
   720x480        60.0     59.9  
   640x480        75.0     60.0     59.9  
   720x400        70.1  
HDMI1 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)


Reproducible: Didn't try
Comment 1 Dima Ryazanov 2015-04-14 18:27:56 UTC
Created attachment 92026 [details]
Screenshot of a panel tooltip appearing on the wrong screen

The panel is on the right monitor, but a system tray tooltip is displayed on the left monitor.
Comment 2 Dima Ryazanov 2015-04-28 00:34:40 UTC
Actually, this affects more than just Plasma. In konsole, the menus (including the right-click menu) have the same problem - they seem to appear off-screen. However, if I start a new instance of konsole, it works fine. I guess it only affects apps that were open while I plugged in the second monitor?
Comment 3 Marco Martin 2015-07-27 10:38:55 UTC
can you paste the output of xprop after clicking on each of the panels?
Comment 4 Ian Morgan 2015-11-17 18:07:10 UTC
I have essentially the same problem, except that I do not see any mouseover tooltips, but I do see popups after clicking on something.

On occasion, the popups show up on the wrong screen, which may be related to the main issue.

Here is the xprop output from my one panel:

$ xprop 
_NET_WM_STRUT(CARDINAL) = 0, 0, 0, 35
_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 0, 35, 0, 0, 0, 0, 0, 0, 1920, 3839
_KDE_SLIDE(_KDE_SLIDE) = 0xffffffff, 0x3
_KDE_NET_WM_ACTIVITIES(STRING) = "00000000-0000-0000-0000-000000000000"
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_STATE(ATOM) = 
_NET_WM_USER_TIME(CARDINAL) = 1539552821
_NET_WM_DESKTOP(CARDINAL) = 4294967295
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 1539546576
_KDE_NET_WM_BACKGROUND_CONTRAST_REGION(_KDE_NET_WM_BACKGROUND_CONTRAST_REGION) = 0x3dfe2535, 0xbc430fb5, 0xbc430fb5, 0x0, 0xbd240cba, 0x3dc480cf, 0xbd240cba, 0x0, 0xbb847cd3, 0xbb847cd3, 0x3e071faf, 0x0, 0x3e23d70b, 0x3e23d70b, 0x3e23d70b, 0x3f800000
_KDE_NET_WM_BLUR_BEHIND_REGION(CARDINAL) = 
_KDE_NET_WM_SHADOW(CARDINAL) = 46137369, 46137371, 46137372, 46137373, 46137374, 46137375, 46137376, 46137377, 6, 6, 6, 6
_NET_WM_ICON(CARDINAL) =        Icon (16 x 16): [icon graphics removed]
XdndAware(ATOM) = BITMAP
WM_NAME(STRING) = 
_NET_WM_NAME(UTF8_STRING) = "Plasma"
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x4, 0x0, 0x0, 0x0
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DOCK
_XEMBED_INFO(_XEMBED_INFO) = 0x0, 0x1
WM_CLIENT_LEADER(WINDOW): window id # 0x2c0000b
WM_HINTS(WM_HINTS):
                Client accepts input or input focus: False
                Initial state is Normal State.
_NET_WM_PID(CARDINAL) = 16803
WM_CLASS(STRING) = "plasmashell", "plasmashell"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                user specified location: 1920, 1045
                user specified size: 1920 by 35
                program specified minimum size: 1920 by 35
                program specified maximum size: 1920 by 35
                window gravity: Static
Comment 5 Ian Morgan 2015-11-17 18:08:31 UTC
FYI, I forgot to mentions: this is with Plasma 5.4.3.
Comment 6 Daniel Boles 2015-12-15 19:48:16 UTC
Confirmed in 5.4.3 (Debian testing). App Launcher is simply missing its popup when clicked. Taskbar right-clicks and systray hovers, etc appear on the external secondary (in my case, left) screen. This is nearly unusable.
Comment 7 Daniel Boles 2015-12-15 19:52:01 UTC
Btw, the above is the same with the monitor plugged in since boot (not just added later). Affected elements appear in random locations on the 2nd screen, not on the 1st (primary, laptop) screen where they should (i.e. where the taskbar, etc are).

If I'd known this would happen, I might've stayed in Debian stable... The only other issues I've had in KDE5 so far have been missing applets that haven't yet been migrated. This is the first outright regression I've noticed  

Anyway, xrandr:

Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767
LVDS1 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 381mm x 214mm
   1920x1080     60.06*+  59.93  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1360x768      59.80    59.96  
   1152x864      60.00  
   1024x768      60.00  
   800x600       60.32    56.25  
   640x480       59.94  
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VGA1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080     60.00*+
   1600x1200     60.00  
   1680x1050     59.95  
   1280x1024     75.02    60.02  
   1440x900      74.98    59.89  
   1280x960      60.00  
   1280x800      59.81  
   1152x864      75.00  
   1024x768      75.08    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    60.00  
   720x400       70.08  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Comment 8 Daniel Boles 2015-12-15 19:56:45 UTC
If I make the left, secondary, external screen primary - everything seems to work as wanted. However, the laptop screen  is closer to me, so it should be my primary.

Super simplistic guess without ref to source code: Perhaps the affected widgets are coded naively to appear on the left screen, regardless of its type or set role. Obviously, if true, this needs to be changed so that they intelligently appear in the right (normal) place on the primary screen instead.

Anyway, I'll stop for now. But if anyone wants any more info that could get this patched ASAP, I'll be more than happy to help provide that.
Comment 9 Daniel Boles 2015-12-16 01:25:38 UTC
Interestingly,  after toggling BACK to the internal laptop screen as primary, things now appear there where they should: the taskbar is there, and so are all of its popups/menus.

so the process here - which I hope can somehow help the experts diagnose & fix this one - was:
* boot with external VGA plugged in - and laptop set as primary on last shutdown
* = taskbar on laptop screen but popups appear in arbitrary places on secondary VGA
* switch primary to VGA
* = taskbar and popups on VGA - 'correctly' but not my desired layout
* switch primary BACK to laptop
* = taskbar and popups now magically appear all on laptop primary, which they should have all along

cheers and hope this helps.
Comment 10 Ian Morgan 2016-01-03 14:01:01 UTC
I found my problem, and it's incredibly stupid. I also can't believe that in all my quests to find a solution over the last 3+ months, nobody ever thought to ask "are tooltips turned on?".. !!!

The closest I had come before was someone asking if the "Show Tooltips" option was turned on ** in Task Manager Settings **.. which it was. And that setting wouldn't explain why no tooltips would show up for ANY panel item, unrelated to Task Manager.

Drum roll, please....

System Settings -> Workspace/Desktop Behaviour -> Workspace/Workspace Behaviour -> Show Informational Tips

ARGH!!! All this time, and it was a goddamned option that was turned off!

Problem solved.. Good-day gentlemen.

Recommendation: In the Task Manager settings, grey-out or disable the "Show tooltips" option (with a hint saying why it's disabled) if the global "Show Informational Tips" option is turned off.

A related question: In what file is the "Show information tips" option setting stored? One of the things I had done to try to resolve this issue was to wipe all my kde/qt settings files/folders and start fresh, yet that made no difference. Is the fresh-start default for this option on or off? I expect that on would be the default.
Comment 11 Daniel Boles 2016-01-04 00:42:47 UTC
Created attachment 96438 [details]
attachment-26513-0.html

Nice to hear, but that unfortunately doesn't help everyone else for whom
KDE 5 is doing all sorts of weird things on multi-display setups.

Are these being worked on for fixing? A similar - but apparently totally
unrelated - issue with notifications was getting a lot of attention, while
this one hasn't even been 'confirmed' yet. What gives? It's hardly an
unimportant detail if a 2nd screen is barely usable without considerable
concessions.


On Sun, Jan 3, 2016 at 2:01 PM, Ian Morgan via KDE Bugzilla <
bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=346181
>
> --- Comment #10 from Ian Morgan <penguin.wrangler@gmail.com> ---
> I found my problem, and it's incredibly stupid. I also can't believe that
> in
> all my quests to find a solution over the last 3+ months, nobody ever
> thought
> to ask "are tooltips turned on?".. !!!
>
> The closest I had come before was someone asking if the "Show Tooltips"
> option
> was turned on ** in Task Manager Settings **.. which it was. And that
> setting
> wouldn't explain why no tooltips would show up for ANY panel item,
> unrelated to
> Task Manager.
>
> Drum roll, please....
>
> System Settings -> Workspace/Desktop Behaviour -> Workspace/Workspace
> Behaviour
> -> Show Informational Tips
>
> ARGH!!! All this time, and it was a goddamned option that was turned off!
>
> Problem solved.. Good-day gentlemen.
>
> Recommendation: In the Task Manager settings, grey-out or disable the "Show
> tooltips" option (with a hint saying why it's disabled) if the global "Show
> Informational Tips" option is turned off.
>
> A related question: In what file is the "Show information tips" option
> setting
> stored? One of the things I had done to try to resolve this issue was to
> wipe
> all my kde/qt settings files/folders and start fresh, yet that made no
> difference. Is the fresh-start default for this option on or off? I expect
> that
> on would be the default.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
>
Comment 12 Martin Klapetek 2016-01-27 03:05:37 UTC
I have this issue now too.

Plasma popups appear on the wrong screen, sometimes don't appear at all.
Comment 13 Vaidas Kascėnas 2016-06-06 18:43:11 UTC
Can confirm this on Ubuntu 16.04, Plasma 5.5.5.
Comment 14 Alexander Mentyu 2018-03-02 13:25:40 UTC
Is the bug is still pertinent?
Comment 15 David Guerrero 2018-03-07 04:59:00 UTC
Created attachment 111239 [details]
schreenshot showing items in wrong side

I can confirm this bug is still present in plasma 5.12.2

OS: KDE Neon 5.12 user
KDE Plasma version 5.12.2
KDE framework 5.43.0
QT 5.10.0
Kernel 4.13.0-36

I use a TV as a secondary HDMI display (located to the left), and laptop is the primary screen. all the pop-ups of the plasma panel are shown in the wrong screen. I started with this problem with the 5.11 update. (wasn't presented by the time I started used KDE neon in December of 2017, or before, when I was on latest Kubuntu 16.04).

In the KDE Neon telegram chat, someone pointed that restoring the layout from the theme will fix the issue, but you will lose any personalization made to the plasma bar. After further testing, it seems that activating the auto-hide option will bring back this problem if you log out and log back in (which sooner or latter you will have to)

I've tried adding new widgets or changing the configuration of the current ones, and this doesn't seem to activate the bug, so far, I only tried the auto-hide to activate it.

Also, this seems related to this bug: https://bugs.kde.org/show_bug.cgi?id=344706

Please let me know which logs can I attach to help and kill this bug.
Comment 16 David Guerrero 2018-03-18 23:08:06 UTC
still present in 5.12.3
Comment 17 Milton Hagler 2018-09-05 02:28:27 UTC
Same issue on Plasma 5.12.6. Often loose external monitor desktop configuration either partially or completely. Using the Icon-only Task Manager on left plus an empty panel on the top setup with a global menu and system System Tray Setting. 

Processer:Intel Core I7-8650U 
Graphics: Intel Graphics 620 
OS: Ubuntu 18.04, KDE Plasma 5.12.6, 64-bit 
Kernel: 4.15.0-33-generic 
KDE Framework: 5.44.0 
Qt: 5.95
Comment 18 Nate Graham 2021-08-16 23:55:24 UTC
Is anyone able to reproduce this in Plasma 5.22? I am not.
Comment 19 Bug Janitor Service 2021-08-31 04:36:12 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 20 Bug Janitor Service 2021-09-15 04:36:16 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!