Bug 458340 - dragged image gets stuck in front of other windows
Summary: dragged image gets stuck in front of other windows
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.25.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-26 11:59 UTC by Mariusz Libera
Modified: 2022-09-01 13:31 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mariusz Libera 2022-08-26 11:59:44 UTC
STEPS TO REPRODUCE
1. open an image file in nomacs - https://nomacs.org/
2. grab the image in nomacs' window to initiate drag and drop
3. close nomacs without dropping the image

OBSERVED RESULT

A thumbnail of the image gets stuck in front of all other windows and it can't be removed.

EXPECTED RESULT

thumbnail gets discarded when nomacs quits
Comment 1 Nate Graham 2022-08-30 19:41:36 UTC
Wayland or X11?

How are you quitting it? Ctrl+Q with one hand while the other hand drags it using a mouse/touchpad?
Comment 2 Mariusz Libera 2022-08-30 20:16:40 UTC
(In reply to Nate Graham from comment #1)
> Wayland or X11?
> 
> How are you quitting it? Ctrl+Q with one hand while the other hand drags it
> using a mouse/touchpad?

X11, I didn't try it on wayland.
Both clicking on the close button and alt+f4 have the same effect, but what I just noticed is that the nomacs process is still running in the background when this bug happens and if you terminate it the leftover thumbnail disappears - so I don't know whether it's kwin or nomacs bug, which of the two is responsible for ending drag and drop operation in this case.
Comment 3 Nate Graham 2022-08-30 20:20:28 UTC
Out of curiosity, how are you using the cursor to drag the image, while also using the cursor to click the close button?
Comment 4 Mariusz Libera 2022-08-30 20:45:32 UTC
(In reply to Nate Graham from comment #3)
> Out of curiosity, how are you using the cursor to drag the image, while also
> using the cursor to click the close button?

Click with left mouse button and drag the image until you see a thumbnail appear and then let go left mouse button - the image thumbnail stays with the cursor. It actually is weird because the thumbnail stays within the nomacs window and can't be dropped that way on to other apps. Dragging works properly with left mouse + ctrl.
Comment 5 Nate Graham 2022-09-01 13:31:27 UTC
Got it.

Since this is on X11, it's an issue in the app or the X server, not KWin. You'll want to follow up with the app's developer.