Bug 509739 - The smoothing effect of Mouse Marks lines renders on a shadow rectangle anchored to the mouse instead the whole screen
Summary: The smoothing effect of Mouse Marks lines renders on a shadow rectangle ancho...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (other bugs)
Version First Reported In: 6.4.5
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-21 05:53 UTC by Olivia Laari
Modified: 2025-09-23 17:30 UTC (History)
1 user (show)

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


Attachments
Faint shadow anchored to the cursor smoothes the drawn lines (995.05 KB, video/mp4)
2025-09-21 06:03 UTC, Olivia Laari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivia Laari 2025-09-21 05:53:07 UTC
SUMMARY
While drawing with Mouse Mark a rectangle (presumably a smoothing effect for the drawn lines) gets anchored to the cursor and it increases in size the further the cursor gets from the screens topleft 0,0.

For example on an 1920x1080 screen, if the cursor is drawing say at 0,540 the (anchored) smoothing box is now the size of 0,540 ie. it now touches the edge of the screen.

So I presume the origo of the smoothing effect for Mouse Mark lines is being drawn to the mouse position (as a rectangle?) instead on top of the of the whole screen.

STEPS TO REPRODUCE
1. Draw a lot of lines
2. Draw more on top of other lines and you'll see a shadow rectangle anchored under the mouse
3. Observe the shadow smoothing the drawn lines.

OBSERVED RESULT
The rectangle flickers the screen as it smoothes/unsmoothes the lines.

EXPECTED RESULT
No flicker and the lines are smoothed properly.

SOFTWARE/OS VERSIONS
kinfo:
Operating System: Manjaro Linux
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.16.8-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X3D 8-Core Processor
Memory: 128 GiB of RAM (125.4 GiB usable)
Graphics Processor: AMD Radeon RX 7900 XTX

ADDITIONAL INFORMATION

In the attachment the rectangle is very faint, it's a lot more noticeable on my monitor/with my eyes (I'm not sure why).

Possibly related bugs:
https://bugs.kde.org/show_bug.cgi?id=337044
https://bugs.kde.org/show_bug.cgi?id=501215
Comment 1 Olivia Laari 2025-09-21 06:03:50 UTC
Created attachment 185128 [details]
Faint shadow anchored to the cursor smoothes the drawn lines

I downscaled the video substantially so the rectangle is easier to see
Comment 2 Olivia Laari 2025-09-21 08:02:47 UTC
When creating the arrows the smoothing effect is properly aligned to 0,0 so there's no separate rectangle like with the free draw, however the smoothness effect still flickers in and out of existence while creating an arrow and moving the mouse ie. when re-drawing the arrow.
Comment 3 Nate Graham 2025-09-23 17:30:10 UTC
Can reproduce.