Summary: | Mouse cursor records in incomplete size when screencasting in Wayland-session. | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Behzad A <behzad.a_ir> |
Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nate, plasma-bugs |
Priority: | NOR | Keywords: | wayland |
Version: | 5.23.5 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=448841 | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/commit/2262685f41eccd90b15aff5af78341542827f0e1 | Version Fixed In: | 5.24 |
Sentry Crash Report: |
Description
Behzad A
2022-01-20 17:49:04 UTC
Cannot reproduce the issue at all since for me, when dragging a window, OBS incorrectly records the cursor with its normal shape, not the "move" shape that it is actually displaying. Regardless, this is either a KWin issue or an OBS issue; moving to KWin to start with. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/1937 Git commit d2867fc4a0ff3ce566e9b5b3093d29836c16f7d6 by Vlad Zahorodnii. Committed on 24/01/2022 at 19:39. Pushed by vladz into branch 'master'. plugins/screencast: Hard-code the maximum cursor size to (256, 256) XCURSOR_SIZE * scale factor is not the way to compute the current cursor size. For example, with breeze cursor theme at an output with a scale of 2 and cursor size 24, cursor images will have the effective size of (64, 64). Also, the cursor can change when passing over user interface elements. In order to accommodate for all of that, this change makes kwin reserve enough of space for a cursor of size 256x256. "256" is a magical number that comes from DRM. With many drivers, the maximum cursor size is 256. M +3 -5 src/plugins/screencast/screencaststream.cpp M +1 -0 src/plugins/screencast/screencaststream.h https://invent.kde.org/plasma/kwin/commit/d2867fc4a0ff3ce566e9b5b3093d29836c16f7d6 Git commit 2262685f41eccd90b15aff5af78341542827f0e1 by Vlad Zahorodnii. Committed on 24/01/2022 at 20:04. Pushed by vladz into branch 'Plasma/5.24'. plugins/screencast: Hard-code the maximum cursor size to (256, 256) XCURSOR_SIZE * scale factor is not the way to compute the current cursor size. For example, with breeze cursor theme at an output with a scale of 2 and cursor size 24, cursor images will have the effective size of (64, 64). Also, the cursor can change when passing over user interface elements. In order to accommodate for all of that, this change makes kwin reserve enough of space for a cursor of size 256x256. "256" is a magical number that comes from DRM. With many drivers, the maximum cursor size is 256. (cherry picked from commit d2867fc4a0ff3ce566e9b5b3093d29836c16f7d6) M +3 -5 src/plugins/screencast/screencaststream.cpp M +1 -0 src/plugins/screencast/screencaststream.h https://invent.kde.org/plasma/kwin/commit/2262685f41eccd90b15aff5af78341542827f0e1 |