Bug 485971

Summary: Keepass tray icon breaks nearby icon, also tooltip is messed up
Product: [Plasma] plasmashell Reporter: Gábor Katona <katonag>
Component: XembedSNIProxyAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: dennis.lissov, kde, materka, postix
Priority: NOR    
Version: 6.0.4   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=433079
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Bad tooltip in upper left screen corner
Broken tooltip over nerby icon
Output of xwininfo -tree -root
xprop output for keepass window

Description Gábor Katona 2024-04-22 15:40:13 UTC
Created attachment 168805 [details]
Bad tooltip in upper left screen corner

SUMMARY
I use keepass2 under wine (not mono). Keepass2 has a minimize to tray option and it works (and worked in KDE5) fine. Since KDE6 however the tray icon is somehow broken:

1. After it is first started the tooltip of any window or desktop icon in the upper left corner of the screen will be the tooltip of Keepass (see keepass1.jpg). When Keepass is maximized and minimized it resolves.

2. The tray icon (the padlock) affects the nearby systray-x (Thunderbird) icon: hoovering over the systray-x icon the tooltip of keepass appears (keepass2.jpg) and clicking the icon act as clicking on keepass2 icon. However this does not always happen, because in some cases only some part of the systray-x icon is not clickable at all while other parts function normally.

Some the keepass icon extends over the systray-x icon.

STEPS TO REPRODUCE
1. Run Thunderbird with systray-x, so we have a tray icon for it
2. Run keepass with wine
3. Hover to the upper left corner after starting
4. Hover over Tb icon and try to click different parts. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed 20240418
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Comment 1 Gábor Katona 2024-04-22 15:40:40 UTC
Created attachment 168806 [details]
Broken tooltip over nerby icon
Comment 2 David Edmundson 2024-04-22 16:11:56 UTC
Whilst this is open can you run

 systemctl --user stop plasma-xembedsniproxy.service 


and confirm if the icon goes away?
Comment 3 Gábor Katona 2024-04-22 16:18:44 UTC
(In reply to David Edmundson from comment #2)
> Whilst this is open can you run
> 
>  systemctl --user stop plasma-xembedsniproxy.service 
> 
> 
> and confirm if the icon goes away?

Yes, the keepass icon goes away when running this and restores if using start. 

Additional info that the non responding parts of the nearby systray-x icon seem to have some strange shape.
Comment 4 David Edmundson 2024-04-22 16:32:07 UTC
Do you have any scaling set?

Can I see output of:

` xwininfo -tree -root`
(note this will have the titles of any open X11 windows, I'm only after the keepass icon)

If you can get the full xprop for that it would be great. Otherwise I'll have to try to reproduce it.
Comment 5 Gábor Katona 2024-04-22 16:53:23 UTC
Created attachment 168807 [details]
Output of xwininfo -tree -root

Attached the output of xwininfo -tree -root.
Comment 6 Gábor Katona 2024-04-22 16:54:20 UTC
What do you mean by full xprop? I got the window id of the tray icon by running xwininfo and clicking on the icon than xprop -id -root said:

_NET_SHOWING_DESKTOP(CARDINAL) = 0
_QT_GET_TIMESTAMP(INTEGER) = 
GDK_VISUALS(INTEGER) = 1022, 857
_NET_WORKAREA(CARDINAL) = 0, 0, 1920, 1036, 0, 0, 1920, 1036, 0, 0, 1920, 1036, 0, 0, 1920, 1036
RESOURCE_MANAGER(STRING) = "Xcursor.size:\t24\nXcursor.theme:\tbreeze_cursors\nXft.antialias:\t1\nXft.dpi:\t96\nXft.hinting:\t-1\nXft.rgba:\tnone\n"
_KDE_NET_WM_BACKGROUND_CONTRAST_REGION(_KDE_NET_WM_BACKGROUND_CONTRAST_REGION) = 0x0
_KDE_NET_WM_BLUR_BEHIND_REGION(_KDE_NET_WM_BLUR_BEHIND_REGION) = 0x0
_KDE_WINDOW_HIGHLIGHT(_KDE_WINDOW_HIGHLIGHT) = 0x0
_KDE_SLIDE(_KDE_SLIDE) = 0x0
_NET_CLIENT_LIST_STACKING(WINDOW): window id # 0x1000007, 0x0, 0x0, 0x0, 0x0, 0x200003a, 0x1e0000c, 0x0, 0x0
_NET_CLIENT_LIST(WINDOW): window id # 0x1000007, 0x200003a, 0x1e0000c
_NET_DESKTOP_GEOMETRY(CARDINAL) = 1920, 1080
_NET_ACTIVE_WINDOW(WINDOW): window id # 0x0
_NET_DESKTOP_NAMES(UTF8_STRING) = "Desktop 1", "Desktop 2", "Desktop 3", "Desktop 4"
_NET_CURRENT_DESKTOP(CARDINAL) = 2
_NET_DESKTOP_VIEWPORT(CARDINAL) = 0, 0, 0, 0, 0, 0, 0, 0
_NET_NUMBER_OF_DESKTOPS(CARDINAL) = 4
_NET_DESKTOP_LAYOUT(CARDINAL) = 0, 2, 2, 0
_NET_SUPPORTING_WM_CHECK(WINDOW): window id # 0x200001
_NET_SUPPORTED(ATOM) = _NET_SUPPORTED, _NET_SUPPORTING_WM_CHECK, _NET_CLIENT_LIST, _NET_CLIENT_LIST_STACKING, _NET_NUMBER_OF_DESKTOPS, _NET_DESKTOP_GEOMETRY, _NET_CURRENT_DESKTOP, _NET_DESKTOP_NAMES, _NET_ACTIVE_WINDOW, _NET_WORKAREA, _NET_DESKTOP_LAYOUT, _NET_CLOSE_WINDOW, _NET_RESTACK_WINDOW, _NET_SHOWING_DESKTOP, _NET_WM_MOVERESIZE, _NET_MOVERESIZE_WINDOW, _NET_WM_NAME, _NET_WM_VISIBLE_NAME, _NET_WM_DESKTOP, _NET_WM_WINDOW_TYPE, _NET_WM_WINDOW_TYPE_NORMAL, _NET_WM_WINDOW_TYPE_DESKTOP, _NET_WM_WINDOW_TYPE_DOCK, _NET_WM_WINDOW_TYPE_TOOLBAR, _NET_WM_WINDOW_TYPE_MENU, _NET_WM_WINDOW_TYPE_DIALOG, _NET_WM_WINDOW_TYPE_UTILITY, _NET_WM_WINDOW_TYPE_SPLASH, _KDE_NET_WM_WINDOW_TYPE_OVERRIDE, _NET_WM_STATE, _NET_WM_STATE_MODAL, _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ, _NET_WM_STATE_SHADED, _NET_WM_STATE_SKIP_TASKBAR, _NET_WM_STATE_SKIP_PAGER, _KDE_NET_WM_STATE_SKIP_SWITCHER, _NET_WM_STATE_HIDDEN, _NET_WM_STATE_FULLSCREEN, _NET_WM_STATE_ABOVE, _NET_WM_STATE_STAYS_ON_TOP, _NET_WM_STATE_BELOW, _NET_WM_STATE_DEMANDS_ATTENTION, _NET_WM_STATE_FOCUSED, _NET_WM_STRUT, _NET_WM_STRUT_PARTIAL, _NET_WM_ICON_GEOMETRY, _NET_WM_ICON, _NET_WM_PID, _NET_WM_PING, _NET_WM_USER_TIME, _NET_STARTUP_ID, _NET_WM_WINDOW_OPACITY, _NET_WM_FULLSCREEN_MONITORS, _NET_WM_ALLOWED_ACTIONS, _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE, _NET_FRAME_EXTENTS, _KDE_NET_WM_FRAME_STRUT, _NET_WM_FULL_PLACEMENT, _KDE_NET_WM_ACTIVITIES, _KDE_NET_WM_SHADOW, _NET_WM_OPAQUE_REGION, _GTK_FRAME_EXTENTS, _GTK_SHOW_WINDOW_MENU
_XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "", ""
Comment 7 Gábor Katona 2024-04-22 16:57:44 UTC
Created attachment 168808 [details]
xprop output for keepass window

Attached the output of xprop for the visible keepass window.  (sorry, the previous xprop output should have been attached also)

Or do you need other info?
Comment 8 David Edmundson 2024-04-22 21:30:49 UTC
Got it. It's to do with the icon / panel moving. Which is more prominent with the floating panels.

Easier reproduction case: start hexchat, right click on it (so it gets activated once)

We shouldn't have our click area on top, but on wayland our call to stack below doesn't work as expected.
Comment 9 David Edmundson 2024-05-15 21:05:23 UTC

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