Bug 466637 - Dragged-and-dropped object on the desktop takes place slowly respect to the mouse with "Morphing Popups" effect enabled on X11
Summary: Dragged-and-dropped object on the desktop takes place slowly respect to the m...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: Wayland drag-and-drop for window content (show other bugs)
Version: 5.27.2
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-01 07:22 UTC by antonio
Modified: 2024-06-11 20:08 UTC (History)
3 users (show)

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


Attachments
example (1.33 MB, video/x-matroska)
2023-03-01 07:22 UTC, antonio
Details
effect that cause the problem (147.70 KB, image/png)
2023-03-06 18:19 UTC, antonio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description antonio 2023-03-01 07:22:27 UTC
Created attachment 156850 [details]
example

SUMMARY
I noticed that Drag and Drop reacts slowly (see video)

Thanks,
Antonio

STEPS TO REPRODUCE
1. Create a desktop element
2. Select and move it (Drag and Drop)

OBSERVED RESULT
The move of desktop object is delayed with respect to mouse position

EXPECTED RESULT
The object should be redesigned in the mouse passage points

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Comment 1 Nate Graham 2023-03-01 20:39:32 UTC
Well that's odd. Needless to day, I can't reproduce the issue on my system.

Can you provide any more information about yours? Is this in a VM or Docker container? Are you using Wayland or X11? What GPU and drivers are you using? etc.
Comment 2 antonio 2023-03-01 20:49:34 UTC
(In reply to Nate Graham from comment #1)
> Well that's odd. Needless to day, I can't reproduce the issue on my system.
> 
> Can you provide any more information about yours? Is this in a VM or Docker
> container? Are you using Wayland or X11? What GPU and drivers are you using?
> etc.

I use an unstable Debian installation on physical PC.

Operating System: Debian GNU/Linux 
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.14-1-liquorix-amd64 (64-bit)
Graphics Platform: X11
Processors: 24 × 12th Gen Intel® Core™ i9-12900T
Memory: 31.1 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 770
Manufacturer: ASUS

00:02.0 VGA compatible controller: Intel Corporation AlderLake-S GT1 (rev 0c) (prog-if 00 [VGA controller])
	DeviceName: Onboard - Video
	Subsystem: ASUSTeK Computer Inc. AlderLake-S GT1
	Flags: bus master, fast devsel, latency 0, IRQ 211
	Kernel driver in use: i915
Comment 3 antonio 2023-03-01 20:51:09 UTC
Base Board Information
    Manufacturer: ASUSTeK COMPUTER INC.
    Product Name: ROG STRIX B660-I GAMING WIFI
Comment 4 Nate Graham 2023-03-02 14:58:47 UTC
Weird, looks like normal hardware to me.
Comment 5 antonio 2023-03-02 18:14:37 UTC
(In reply to Nate Graham from comment #4)
> Weird, looks like normal hardware to me.

Hi Nate,
after various tests I found the solution: the problem occurred because, in some way, the effect of the desktop had been activated: "appearance windows that are transformed (animation in fading when the suggestions and notifications change geometry)"; deactivated the effect, the system has returned to normal.

I think that, the effects of the desktop that create problems, should also be removed, at least until they are working.
Comment 6 Nate Graham 2023-03-06 16:59:26 UTC
Which effect specifically caused it? What's its name? Can you attach a screenshot showing the effect?
Comment 7 antonio 2023-03-06 18:19:17 UTC
Created attachment 157054 [details]
effect that cause the problem
Comment 8 antonio 2023-03-06 18:20:08 UTC
(In reply to Nate Graham from comment #6)
> Which effect specifically caused it? What's its name? Can you attach a
> screenshot showing the effect?

I have already indicated the name of the effect in the previous message; however, I also attach an image.

As for the screenshot, it is what you see in the video "example" that I had initially included.
Comment 9 Nate Graham 2023-03-06 18:24:18 UTC
Thanks. Is this an effect that you installed yourself?
Comment 10 antonio 2023-03-06 18:49:35 UTC
(In reply to Nate Graham from comment #9)
> Thanks. Is this an effect that you installed yourself?

It is an effect provided by plasma, I have not installed any effect
Comment 11 veggero 2023-03-06 19:07:44 UTC
The effect seems to be the italian translation of "Morphing Popups"
Comment 12 Nate Graham 2023-03-06 19:49:02 UTC
Thanks!

I wonder how that effect could be related. These icons aren't popups. Could it be targeting them in error?
Comment 13 Bug Janitor Service 2024-06-09 05:52:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5861
Comment 14 David Edmundson 2024-06-11 20:08:57 UTC
Git commit d6360cc4ce4e0d85862a4bb077b8b3dc55cd74a7 by David Edmundson.
Committed on 11/06/2024 at 19:58.
Pushed by davidedmundson into branch 'master'.

effects: Drop morphing popups effect

The effect does not work very well for two main reasons:
Some clients will make a new popup rather than move an existing one, so
whether it does anything is highly unpredictable as a user.

Popups can be of massively different sizes with different amounts of
text. This means the text in the smaller popup gets resized which
doesn't look like a natural in-between state of the two popups. This
defeats the objective of looking smoother.

On top of that, it's rather glitchy.
This effect was purely visual, no functionality changes.
Related: bug 473411, bug 466638, bug 416048, bug 461501

M  +0    -1    src/plugins/CMakeLists.txt
D  +0    -1    src/plugins/morphingpopups/CMakeLists.txt
D  +0    -137  src/plugins/morphingpopups/package/contents/code/main.js
D  +0    -144  src/plugins/morphingpopups/package/metadata.json

https://invent.kde.org/plasma/kwin/-/commit/d6360cc4ce4e0d85862a4bb077b8b3dc55cd74a7