Bug 482920 - Mouse cursor offset in Firefox
Summary: Mouse cursor offset in Firefox
Status: RESOLVED DUPLICATE of bug 482687
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 6.0.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-08 20:44 UTC by Matty R
Modified: 2024-03-10 20:54 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Mouse offset (6.31 KB, image/png)
2024-03-08 20:44 UTC, Matty R
Details
Moving Firefox window (2.72 MB, video/mp4)
2024-03-08 20:50 UTC, Matty R
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matty R 2024-03-08 20:44:01 UTC
Created attachment 166735 [details]
Mouse offset

SUMMARY
Since the update, if I snap Firefox to the top the mouse seems to be offset a number of pixels compared to where the actual cursor is. It also affects the content in sites, not just stuff in Firefox. 
Looks like it’s not just when it’s snapped, but as soon as it passes about the top 90% of the screen. Just took a screenshot, where you can see the cursor is hovering over Other Bookmarks, but it’s activating the menu above it.


STEPS TO REPRODUCE
1. Open Firefox (not fullscreen)
2. Meta+Left Mouse to move Firefox to the top-right of the screen

OBSERVED RESULT
As per attached screenshot, mouse will be offset an increasing amount compared to how close it is to the top of the screen

EXPECTED RESULT
Mouse activates where the cursor is.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.8-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3070 Ti/PCIe/SSE2

ADDITIONAL INFORMATION
Happens regardless of if the bottom panel is set to floating or not. I found that if I maximize Firefox, then meta+Right-click drag to resize the window the mouse doesn't get offset, or if I don't move it from it's position where it was originally launched.
Comment 1 Matty R 2024-03-08 20:50:08 UTC
Created attachment 166736 [details]
Moving Firefox window
Comment 2 HeathenHacks 2024-03-09 11:48:04 UTC
(In reply to Matty R from comment #1)
> Created attachment 166736 [details]
> Moving Firefox window

(In reply to Matty R from comment #0)
> Created attachment 166735 [details]
> Mouse offset
> 
> SUMMARY
> Since the update, if I snap Firefox to the top the mouse seems to be offset
> a number of pixels compared to where the actual cursor is. It also affects
> the content in sites, not just stuff in Firefox. 
> Looks like it’s not just when it’s snapped, but as soon as it passes about
> the top 90% of the screen. Just took a screenshot, where you can see the
> cursor is hovering over Other Bookmarks, but it’s activating the menu above
> it.
> 
> 
> STEPS TO REPRODUCE
> 1. Open Firefox (not fullscreen)
> 2. Meta+Left Mouse to move Firefox to the top-right of the screen
> 
> OBSERVED RESULT
> As per attached screenshot, mouse will be offset an increasing amount
> compared to how close it is to the top of the screen
> 
> EXPECTED RESULT
> Mouse activates where the cursor is.
> 
> SOFTWARE/OS VERSIONS
> Operating System: Arch Linux 
> KDE Plasma Version: 6.0.1
> KDE Frameworks Version: 6.0.0
> Qt Version: 6.6.2
> Kernel Version: 6.7.8-zen1-1-zen (64-bit)
> Graphics Platform: X11
> Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
> Memory: 31.3 GiB of RAM
> Graphics Processor: NVIDIA GeForce RTX 3070 Ti/PCIe/SSE2
> 
> ADDITIONAL INFORMATION
> Happens regardless of if the bottom panel is set to floating or not. I found
> that if I maximize Firefox, then meta+Right-click drag to resize the window
> the mouse doesn't get offset, or if I don't move it from it's position where
> it was originally launched.


This same thing is also happening on my end. Are you perhaps on a multi-monitor setup?
Comment 3 breakingspell 2024-03-09 18:01:23 UTC
Also experiencing the same with Chromium on Plasma 6 X11, only on my second monitor. Can recreate with Firefox, and the maximize+resize workaround DOES work. 

To note, I usually disable Kscreen and use xorg to set monitors (xorg.conf). Enabling Kscreen doesn't seem to affect the offset.
Comment 4 fanzhuyifan 2024-03-09 18:13:35 UTC
Very likely duplicate of BUG 482687.
Comment 5 Matty R 2024-03-09 19:24:33 UTC
(In reply to HeathenHacks from comment #2)
> 
> This same thing is also happening on my end. Are you perhaps on a
> multi-monitor setup?

No, just a single monitor
Comment 6 Matty R 2024-03-10 20:42:47 UTC
This issue is also affecting Thunderbird.
Comment 7 Nate Graham 2024-03-10 20:54:07 UTC

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