Bug 421395 - With fractional scaling, during drag-and-drop action, dragged item is blurred.
Summary: With fractional scaling, during drag-and-drop action, dragged item is blurred.
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.18.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-12 07:49 UTC by Matej Mrenica
Modified: 2023-01-18 13:55 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matej 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 Matej 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