Bug 487720 - On X11, Taskbar and desktop not reading correct mouse position after switching inputs using a KVM
Summary: On X11, Taskbar and desktop not reading correct mouse position after switchin...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.0.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-29 02:50 UTC by Shane Whitmire
Modified: 2024-07-16 03:46 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shane Whitmire 2024-05-29 02:50:46 UTC
The desktop and taskbar do not read the correct mouse position value preventing me from clicking on any elements on the taskbar after waking from a sleep.

Relevant video demonstrating issue.
https://www.youtube.com/watch?v=UIzN5ZZr1xk

STEPS TO REPRODUCE
Unknown

OBSERVED RESULT
Taskbar and desktop not using correct mouse position

EXPECTED RESULT
Taskbar and desktop to use the correct mouse position

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.9.2-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 20 × 12th Gen Intel® Core™ i7-12700K
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® Arc
Manufacturer: ASUS

ADDITIONAL INFORMATION
Comment 1 Shane Whitmire 2024-05-29 02:51:45 UTC
I should also add that I do not know where the KDE log files I need to send ya'll are. If you let me know the file paths (best to give multiple), then I can send you a log file
Comment 2 Shane Whitmire 2024-06-02 18:03:36 UTC
something else i would like to add. I have a KVM switch and do oftenly use it.
Comment 3 Shane Whitmire 2024-06-05 02:30:45 UTC
Alright some new information. It doesn't seem like it has much to do with suspending. It looks like it has to do with the KVM switch. Whenever I plug in my kvm to another computer, it will automatically move all my inputs to the new computer. Then when I come back to my machine running KDE, it bugs out.
Comment 4 Shane Whitmire 2024-06-06 16:04:28 UTC
So I now have more reliable reproduction steps. Sometimes when I switch my mouse / keyboard input from one computer to another computer via KVM switch, it will cause the desktop and task bar to no longer use mouse input
Comment 5 Shane Whitmire 2024-06-06 16:05:00 UTC
Also experimented with unplugging and replugging my KVM switch on the linux computer. It has no affect
Comment 6 Shane Whitmire 2024-06-06 16:06:59 UTC
(In reply to Shane Whitmire from comment #5)
> Also experimented with unplugging and replugging my KVM switch on the linux
> computer. It has no affect

I wish you could edit comments. What I mean is I currently have the bug occuring right now, and when I unplug the USB from my linux computer and back into it, I still have the same issue of it not registering my mouse. Not even plugging my mouse directly into the desktop will fix the bug. only restarting KDE.
Comment 7 Shane Whitmire 2024-06-06 22:53:23 UTC
This fixes it without having to restart everything:
plasmashell --replace &
Comment 8 Nate Graham 2024-06-11 19:05:58 UTC
Does it ever happen on Wayland too, or only on X11?
Comment 9 Shane Whitmire 2024-06-12 02:53:10 UTC
Potentially related issue with konsole: https://www.youtube.com/watch?v=F_Y_X7OU-tc
Comment 10 Shane Whitmire 2024-06-12 02:59:57 UTC
(In reply to Nate Graham from comment #8)
> Does it ever happen on Wayland too, or only on X11?

Ok, so I'm not 100% sure yet as it feels "random" when it happens, but I've swapped my kvm to multiple machines back and forth and haven't been able to reproduce the issue. I'll stick with wayland for now if it is less buggy :). 

If I don't respond in a few days, or if I respond saying problem gone, then it's an x11 + kde issue :)
Comment 11 Nate Graham 2024-06-12 16:11:51 UTC
Thanks, let's see!
Comment 12 Shane Whitmire 2024-06-16 21:27:48 UTC
Almost forgot to drop a comment. 

Not only is this bug gone, but many more other smaller bugs are gone once I switched over to wayland. Good suggestion, thanks!
Comment 13 Bug Janitor Service 2024-07-01 03:47:14 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 14 Bug Janitor Service 2024-07-16 03:46:37 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!