Bug 421395

Summary: With fractional scaling, during drag-and-drop action, dragged item is blurred.
Product: [Plasma] kwin Reporter: Lucia Mrenica <lucia.mrenica>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: REOPENED ---    
Severity: normal CC: claudius.ellsel, kde, lucia.mrenica, plasma-bugs, vse.stopchanskyi
Priority: NOR    
Version First Reported In: 5.18.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: dragging a folder and it's blurry

Description Lucia Mrenica 2020-05-12 07:49:33 UTC
SOFTWARE/OS VERSIONS
KDE Frameworks Version: 5.70
Qt Version: 5.15 RC2

ADDITIONAL INFORMATION
I am willing to create a patch for this, if someone tells me where is the code located/ what repo does this belong to.
Comment 1 David Edmundson 2020-05-12 08:17:53 UTC
Kwin renders drag surfaces.

Drag surfaces are a wl_surface which will have a buffer and a scale.

Cursors are then rendered directly on the DRM plane.
Comment 2 David Edmundson 2020-05-12 08:27:29 UTC
A relevant phab: https://phabricator.kde.org/D29672

I don't know if it'll fix much, but it's something that's currently wrong. Should also show you the relevant area.
Comment 3 David Edmundson 2020-05-13 13:44:40 UTC
Git commit e8091a1d6faff1b9ca2696c4fa5d284ace0a33ce by David Edmundson.
Committed on 13/05/2020 at 13:44.
Pushed by davidedmundson into branch 'master'.

Follow scale of drag surfaces

Summary:
Similar to regular cursors a drag surface can have a scale.

The buffer "rect" should be in logical pixels at which point QPainter
will automatically handle everything.

Reviewers: #kwin, zzag, apol

Reviewed By: #kwin, zzag, apol

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D29672

M  +2    -0    pointer_input.cpp

https://commits.kde.org/kwin/e8091a1d6faff1b9ca2696c4fa5d284ace0a33ce
Comment 4 Lucia Mrenica 2020-05-23 15:13:08 UTC
Now instead of being blurry the item is actually bigger (about double the size), which is probably related to mouse cursor or widgets being bigger.
Comment 5 Vlad Zahorodnii 2023-01-18 13:55:22 UTC
It's a separate issue and should be filed in a new bug report
Comment 6 Damglador 2025-03-29 11:46:22 UTC
Created attachment 179839 [details]
dragging a folder and it's blurry

Hey. This is still a thing with Plasma 6.3.3. When my scaling is set to 125 or 150, drag&drop items are extremely pixelated/blurry. With 100% everything as it should be

Operating System: Arch Linux 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3
Kernel Version: 6.14.0-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600H with Radeon Graphics
Memory: 13.5 GiB of RAM
Graphics Processor 1: AMD Radeon Graphics
Graphics Processor 2: NVIDIA GeForce RTX 3060 Laptop GPU