Bug 487990 - 3840x2160 monitor bounding box is not a rectangle
Summary: 3840x2160 monitor bounding box is not a rectangle
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.27.11
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-03 19:50 UTC by dev.lh
Modified: 2024-06-05 09:38 UTC (History)
1 user (show)

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


Attachments
The cursor is offscreen behind the red arrow (13.30 KB, image/png)
2024-06-03 19:50 UTC, dev.lh
Details
On the bottom right, the cursor is still slightly visible (1.15 KB, image/png)
2024-06-03 19:50 UTC, dev.lh
Details
When you scroll out of bounds, the scrolling stops at one point (9.75 KB, image/png)
2024-06-03 19:53 UTC, dev.lh
Details
Dragging works as intended (3.11 KB, image/png)
2024-06-03 19:55 UTC, dev.lh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dev.lh 2024-06-03 19:50:02 UTC
Created attachment 170116 [details]
The cursor is offscreen behind the red arrow

SUMMARY

I have a single 4K monitor setup.
I don't know the exact monitor model, but it is an LG monitor with 3840x2160 resolution.
I've noticed that since updating from Kubuntu 23.10 to Kubuntu 24.04, the bounding box of the monitor is calculated incorrectly.

On the right side of the monitor, there is weird behavior:
1. In the upper right corner until about half the screen, the bounds of the screen are insofar too large as that the cursor can completely vanish offscreen 
2. On the lower right corner, the screen suddenly gets thinner:
A few pixels of the cursor are still visible when trying your hardest to leave the screen. (attachment 2 [details])
You can especially notice that while scrolling:
If you scroll from the top down while the cursor is offscreen, you can only scroll until you reach a specific point on the y axis, at which the scroll stops and only continues once you move the cursor a few pixels to the left. (attachment 3 [details])

Notably, the bug does not occur if you are already dragging something from a visible point as then the dragging stops at the intended border. (attachment 4 [details])

EXPECTED RESULT
I cannot leave the screen with the cursor, scrolling works as expected


SOFTWARE/OS VERSIONS
Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.8.0-31-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-9700K CPU @ 3.60GHz
Memory: 15,5 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
Manufacturer: HP
Product Name: OMEN by HP Desktop PC 880-p5xx
Comment 1 dev.lh 2024-06-03 19:50:47 UTC
Created attachment 170117 [details]
On the bottom right, the cursor is still slightly visible
Comment 2 dev.lh 2024-06-03 19:53:19 UTC
Created attachment 170118 [details]
When you scroll out of bounds, the scrolling stops at one point
Comment 3 dev.lh 2024-06-03 19:55:04 UTC
Created attachment 170119 [details]
Dragging works as intended
Comment 4 Zamundaaa 2024-06-05 09:38:41 UTC
KWin doesn't handle mouse cursor confinement or desktop size, there's something wrong with your Xorg configuration instead. You can ask for help with that from your distro.