Bug 425258

Summary: Dragged items aren't under the mouse cursor but shifted downward
Product: [Plasma] plasmashell Reporter: Matej Mrenica <matejm98mthw>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED FIXED    
Severity: normal CC: alexander.reimelt, claudius.ellsel, elvis.angelaccio, kfm-devel, matejm98mthw, nate, plasma-bugs
Priority: NOR    
Version: 5.20.0   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=385054
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot
Offset when dragging to the icons only task manager
Mockup based on previous screenshot showing the expected behavior
From Gwenview to Desktop

Description Matej Mrenica 2020-08-12 13:51:20 UTC
Created attachment 130822 [details]
Screenshot

See the screenshot

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0
Comment 1 Matej Mrenica 2020-08-12 13:52:31 UTC
Expected behavior would be mouse cursor being in the middle of the item.
Comment 2 Elvis Angelaccio 2020-08-31 00:01:52 UTC
IIRC this is done on purpose to improve the UX. Having the mouse cursor in the center of the drag pixmap would make harder to see where to drop it.
Comment 3 Nate Graham 2020-08-31 02:31:03 UTC
Agreed.
Comment 4 Christoph Feck 2020-09-10 10:15:03 UTC
*** Bug 425760 has been marked as a duplicate of this bug. ***
Comment 5 Claudius Ellsel 2020-09-10 13:41:11 UTC
Commenting here, since my bug report was marked as a duplicate of this.

If this really is a duplicate, then the behavior is pretty unexpected and annoying to me. When I want to drag something to another window on the task manager it feels like I have to drag to the icon next to the actual one.
Comment 6 Claudius Ellsel 2020-09-10 13:46:51 UTC
Created attachment 131538 [details]
Offset when dragging to the icons only task manager

Notice that I drag the file on the Gwenview icon while the task manager highlights Firefox instead.

Might be a different bug, though.
Comment 7 Claudius Ellsel 2020-10-16 19:09:07 UTC
Reopening. Maybe my bug was falsely marked as a duplicate, but currently this is the bug where it is tracked at. Please see my attached screenshot. The behavior is most likely not intended. I mentioned that before, but probably because this is marked as resolved, I got no reply in between.
Comment 8 Nate Graham 2020-10-16 20:01:57 UTC
Can you please attach a mockup that shows how you expect this to look in various situations?
Comment 9 Claudius Ellsel 2020-10-16 21:00:46 UTC
Created attachment 132448 [details]
Mockup based on previous screenshot showing the expected behavior

(In reply to Nate Graham from comment #8)
> Can you please attach a mockup that shows how you expect this to look in
> various situations?

Starting from my previous screenshot I created a mockup showing my expectations.

I think other situations should behave similarly:
If the cursor that drags the file icon is over a surface that a file can be dragged then highlight that surface.

Currently the surface gets only hightlighted if the cursor is offset by a decent space from the surface. This is not how this works on any other operating system or desktop environment I know, thus I am rather sure, this is a bug. Maybe better tracked in a different place, but since my old report was marked as duplicate of this, I am using this one for now.
Comment 10 Claudius Ellsel 2020-10-16 21:01:32 UTC
Forgot to set status to reopened.
Comment 11 Nate Graham 2020-10-16 21:26:59 UTC
I see. Your bug report is indeed something else. Un-duping.
Comment 12 Alexander 2020-10-17 08:58:01 UTC
I have written about a very similar issue in dolphin under
https://bugs.kde.org/show_bug.cgi?id=385054

If this is supposed to be intentional, why doesn't this happen on X11 and why do something that obviously harms the user experience?
Comment 13 Claudius Ellsel 2020-10-17 13:23:32 UTC
(In reply to Nate Graham from comment #11)
> I see. Your bug report is indeed something else. Un-duping.

Thanks!

(In reply to Alexander from comment #12)
> I have written about a very similar issue in dolphin under
> https://bugs.kde.org/show_bug.cgi?id=385054
> 
> If this is supposed to be intentional, why doesn't this happen on X11 and
> why do something that obviously harms the user experience?

As you see above, this issue is now tracked under https://bugs.kde.org/show_bug.cgi?id=425760 again, since this bug report is apparently about something different. Sorry to have to forward you again, but probably best to followup there for the future progress.
Comment 14 Claudius Ellsel 2020-10-17 14:10:07 UTC
(In reply to Matej Mrenica from comment #0)
> Created attachment 130822 [details]
> Screenshot
> 
> See the screenshot
> 
> SOFTWARE/OS VERSIONS
> KDE Plasma Version: 5.19.4
> KDE Frameworks Version: 5.73.0
> Qt Version: 5.15.0

Looking at the screenshot, the vertical offset seems to be pretty extreme. I cannot reproduce this, can you add more details (Wayland, which application did you drag from...)? - Reopening for now since it is most likely a bug.
Comment 15 Nate Graham 2020-10-17 15:32:33 UTC
I actually cannot reproduce the issue depicted in the screenshot. In Plasma's Folder View, dragging a file causes it to be dragged from wherever the cursor was actually located at, unlike in Dolphin, where it gets shifted down (this is an inconsistency!!!!)

Where did this file live? On the desktop? Dolphin? Somewhere else?
Comment 16 Matej Mrenica 2020-10-17 15:37:35 UTC
TBH I cannot reproduce this either right now. The only issue remaining is the dragged item being blurred on X11 or being twice as big on Wayland.

Arch Linux, Plasma 5.20.0, Kf 5.75, Qt 5.15.1
Comment 17 Matej Mrenica 2020-10-17 15:40:28 UTC
(In reply to Nate Graham from comment #15)
> I actually cannot reproduce the issue depicted in the screenshot. In
> Plasma's Folder View, dragging a file causes it to be dragged from wherever
> the cursor was actually located at, unlike in Dolphin, where it gets shifted
> down (this is an inconsistency!!!!)
> 
> Where did this file live? On the desktop? Dolphin? Somewhere else?

IIRC it was from Dolphin to desktop but now it looks reasonably.
Comment 18 Claudius Ellsel 2020-10-17 15:46:47 UTC
(In reply to Matej Mrenica from comment #16)
> TBH I cannot reproduce this either right now. The only issue remaining is
> the dragged item being blurred on X11 or being twice as big on Wayland.
> 
> Arch Linux, Plasma 5.20.0, Kf 5.75, Qt 5.15.1

Maybe it got fixed in between.

Regarding blurred or twice as big dragged items on X11: This sounds like a different bug, is there already a bug report for it? Else can you open one (and link it here so we can follow up)?
Comment 19 Claudius Ellsel 2020-10-17 15:52:08 UTC
(In reply to Matej Mrenica from comment #17)
> IIRC it was from Dolphin to desktop but now it looks reasonably.

Hm, the cursor looks different when I drag an image from Dolphin (no hand symbol, just the normal arrow). That might have changed in between or have something to do with my setup, though.
Comment 20 Matej Mrenica 2020-10-17 15:54:02 UTC
(In reply to Claudius Ellsel from comment #19)
> (In reply to Matej Mrenica from comment #17)
> > IIRC it was from Dolphin to desktop but now it looks reasonably.
> 
> Hm, the cursor looks different when I drag an image from Dolphin (no hand
> symbol, just the normal arrow). That might have changed in between or have
> something to do with my setup, though.

Also no hand symbol here.
Comment 21 Matej Mrenica 2020-10-17 15:54:21 UTC
I have accidentally re-discovered this issue in Gwenview. To trigger it simply open a folder of pictures in Gwenview and start dragging one of them. You should see:
1. the dragged item is quite far from the cursor
2. the item is exactly half the size of the original
3. the item will have white "areas" added to it
The bottom thumbnail panel in Gwenview has this issue too. I will try to post a screenshot.
Comment 22 Matej Mrenica 2020-10-17 15:56:23 UTC
(In reply to Claudius Ellsel from comment #18)
> (In reply to Matej Mrenica from comment #16)
> > TBH I cannot reproduce this either right now. The only issue remaining is
> > the dragged item being blurred on X11 or being twice as big on Wayland.
> > 
> > Arch Linux, Plasma 5.20.0, Kf 5.75, Qt 5.15.1
> 
> Maybe it got fixed in between.
> 
> Regarding blurred or twice as big dragged items on X11: This sounds like a
> different bug, is there already a bug report for it? Else can you open one
> (and link it here so we can follow up)?

There is a report for that: https://bugs.kde.org/show_bug.cgi?id=421395
Comment 23 Matej Mrenica 2020-10-17 16:00:07 UTC
Created attachment 132478 [details]
From Gwenview to Desktop

As I mentioned before the white areas aren't parts of the file.
Comment 24 Claudius Ellsel 2020-10-17 16:09:49 UTC
(In reply to Matej Mrenica from comment #22)
> There is a report for that: https://bugs.kde.org/show_bug.cgi?id=421395

Thanks for the link!
Comment 25 Claudius Ellsel 2020-10-17 16:16:50 UTC
(In reply to Matej Mrenica from comment #21)
> I have accidentally re-discovered this issue in Gwenview. To trigger it
> simply open a folder of pictures in Gwenview and start dragging one of them.
> You should see:
> 1. the dragged item is quite far from the cursor
> 2. the item is exactly half the size of the original
> 3. the item will have white "areas" added to it
> The bottom thumbnail panel in Gwenview has this issue too. I will try to
> post a screenshot.

Hm, that might be yet another bug. Notice that on your original screenshot here has not been the white surrounding for example. Maybe also related to https://bugs.kde.org/show_bug.cgi?id=385054.

I cannot really reproduce by the way (Wayland, no scaling). Do you use fractional scaling?
Comment 26 Matej Mrenica 2020-10-17 16:42:02 UTC
(In reply to Claudius Ellsel from comment #25)
> (In reply to Matej Mrenica from comment #21)
> > I have accidentally re-discovered this issue in Gwenview. To trigger it
> > simply open a folder of pictures in Gwenview and start dragging one of them.
> > You should see:
> > 1. the dragged item is quite far from the cursor
> > 2. the item is exactly half the size of the original
> > 3. the item will have white "areas" added to it
> > The bottom thumbnail panel in Gwenview has this issue too. I will try to
> > post a screenshot.
> 
> Hm, that might be yet another bug. Notice that on your original screenshot
> here has not been the white surrounding for example. Maybe also related to
> https://bugs.kde.org/show_bug.cgi?id=385054.
> 
> I cannot really reproduce by the way (Wayland, no scaling). Do you use
> fractional scaling?

Yes, that is probably another bug. Regarding the other bug you linked, it's similar but likely not the same because I don't use multiple monitors. I do use fractional scaling at 125%
Comment 27 Claudius Ellsel 2020-10-17 16:53:36 UTC
(In reply to Matej Mrenica from comment #26)
> Yes, that is probably another bug. Regarding the other bug you linked, it's
> similar but likely not the same because I don't use multiple monitors. I do
> use fractional scaling at 125%

Alright. What I would suggest is to open another bug report for the things you experience with Gwenview (including that you use fractional scaling at 125%). This bug report can probably be closed as fixed then.
Comment 28 Matej Mrenica 2020-10-17 17:01:47 UTC
Done: https://bugs.kde.org/show_bug.cgi?id=427878
Comment 29 Claudius Ellsel 2020-10-17 18:47:53 UTC
(In reply to Matej Mrenica from comment #28)
> Done: https://bugs.kde.org/show_bug.cgi?id=427878

Thanks, I subscribed there.

I will leave the (possible) resolution of this to Nate, since I didn't set the NEEDSINFO state.
Comment 30 Bug Janitor Service 2020-11-01 04:33:28 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 31 Claudius Ellsel 2020-11-01 14:31:19 UTC
Looks fixed, unfortunately Nate did not react in the meantime to my request to triage this, so marking as resolved fixed before the bot does something else.