Bug 503286 - Toggle Present Windows leaves Thunderbird tooltips above other windows
Summary: Toggle Present Windows leaves Thunderbird tooltips above other windows
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (other bugs)
Version First Reported In: 6.3.4
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-24 12:40 UTC by Frederick Zhang
Modified: 2025-04-28 15:44 UTC (History)
3 users (show)

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


Attachments
Thunderbird tooltip above System Monitor (54.94 KB, image/png)
2025-04-24 12:40 UTC, Frederick Zhang
Details
Screen recording of tooltip above System Monitor under X11 (818.17 KB, video/mp4)
2025-04-26 08:43 UTC, Frederick Zhang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frederick Zhang 2025-04-24 12:40:49 UTC
Created attachment 180610 [details]
Thunderbird tooltip above System Monitor

SUMMARY
When my cursor is in Thunderbird's message list area, while no tooltips have appeared yet (important), if I use Toggle Present Windows to switch to another application, a Thunderbird tooltip will show above the current application.

It's been happening to me for a very long time, but today I just accidentally discovered this way to reproduce the issue every time.

I'm not entirely sure if this is a Thunderbird issue or GTK in general or something. Personally I can only reproduce this issue with Thunderbird, but I also found similar reports like https://discuss.kde.org/t/firefox-tooltips-are-persistent-and-show-up-on-top-of-other-windows/3141.

STEPS TO REPRODUCE
1. Move mouse cursor to Thunderbird's message list area
2. Before any tooltips show up, quickly trigger Toggle Present Windows
3. Choose another application that will show above Thunderbird's message list

OBSERVED RESULT
A Thunderbird tooltip shows up above current application.

EXPECTED RESULT
No Thunderbird tooltips.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.12.24-1-lts (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Comment 1 John Kizer 2025-04-24 18:47:14 UTC
Hi - I can't reproduce on my Fedora KDE 42 device. Could you please check and see if the same issue occurs in a Wayland session? Thanks!
Comment 2 Frederick Zhang 2025-04-25 07:43:13 UTC
> Could you please check and see if the same issue occurs in a Wayland session?

Yes, I have the same issue in Wayland unfortunately.

Note that to reproduce this issue, you really have to trigger Toggle Present Windows *immediately* after moving your cursor to Thunderbird's message list. If Toggle Present Windows is triggered too late, even just by a few tens of milliseconds and a tooltip is already fading in, the issue won't happen. I encounter this issue relatively often since I assigned a button on my mouse to Ctrl-F10, otherwise I probably wouldn't have noticed.

And btw I use NVIDIA with its proprietary driver (nvidia-dkms 570.144-1). Not sure whether it's relevant.
Comment 3 TraceyC 2025-04-25 15:03:43 UTC
I'm also not able to reproduce this on git-master with a keybind I can very quickly use for Present Windows. Unfortunately there's no easy way to remap buttons on my mouse. 
This may very well be a race condition that requires the speed of a mouse click. Hopefully someone else can test with a remapped mouse button.
Comment 4 Frederick Zhang 2025-04-26 08:43:08 UTC
Created attachment 180675 [details]
Screen recording of tooltip above System Monitor under X11

> I'm also not able to reproduce this on git-master with a keybind I can very quickly use for Present Windows.

Well, I wouldn't be surprised if it's only caused by some weird setup of mine. Though to make sure there was no miscommunication, I uploaded a screen recoding of this issue. (Pardon my terrible editing skills lol.)

Here's also a script I managed to put together to reproduce it under X11:

#!/usr/bin/env bash

# Open Thunderbird and System Monitor first
# Make sure Thunderbird is visible, and System Monitor overlaps with Thunderbird when brought into foreground

thunderbird_window_id="$(xdotool search --sync --onlyvisible --name Thunderbird)"

xdotool windowactivate --sync "$thunderbird_window_id"
# Adjust based on height of Thunderbird message list pane
xdotool mousemove --window "$thunderbird_window_id" --polar 0 200
# The delay has to be around 0.4-0.5
# Apparently it won't happen if it's too short either, and it can even trigger some weird Thunderbird shortcuts when set to 0.1.
sleep 0.5

xdotool key Ctrl+F10
xdotool type 'system monitor'
xdotool key Enter
Comment 5 Frederick Zhang 2025-04-26 08:49:47 UTC
> xdotool type 'system monitor'

Sorry but please remove the space between `system monitor`. It should be:

> xdotool type 'systemmonitor'

Just realised that Toggle Present Windows confirms its selection on Space too, so ` monitor` actually got typed into System Monitor, although it didn't change the outcome.