Bug 410154

Summary: Cannot dismiss the useractions popup menu by clicking outside
Product: [Plasma] kwin Reporter: Alberto Díaz López <takuya>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal Flags: vlad.zahorodnii: Wayland+
vlad.zahorodnii: X11-
Priority: NOR    
Version First Reported In: 5.16.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.21
Sentry Crash Report:
Attachments: Plasma KWin Wayland Bugged Context Menu On Title Bar

Description Alberto Díaz López 2019-07-24 12:32:49 UTC
SUMMARY

Contextual Menu & Drag & Drop Actions Don't Work As It Expected Under Wayland

STEPS TO REPRODUCE
1. Login to Wayland session.
2. Open any GUI program.
3. Right click (to open context menu) on the title bar.
4. Do a drag & drop event/action.

OBSERVED RESULT

It's impossible in my personal case to quit that context menu after i invoke it, either doing right click at other place of the screen, left click, pressing Esc key usually solves the problem, but it's only a temporal fix.

Regarding to the drag & drop action/event, you can't do the click to finish the event, i only can finish this the same way i have to the previous bug, pressing Esc key.

EXPECTED RESULT

Context menu & drag & drop should work flawlessly.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.2.2/5.16.3
(available in About System)
KDE Plasma Version: 5.16.3
KDE Frameworks Version: 5.60
Qt Version: 5.13

ADDITIONAL INFORMATION
Comment 1 Martin Flöser 2019-07-24 17:46:45 UTC
Could you please illustrate with a screenshot where you click?
Comment 2 Alberto Díaz López 2019-07-25 10:12:43 UTC
Created attachment 121718 [details]
Plasma KWin Wayland Bugged Context Menu On Title Bar

It happens on both GTK (Firefox Developer Edition) & on Qt (Dolphin, Telegram Desktop, etc). So i suppose it's not related with the framework/toolkit used by the software.
Comment 3 Martin Flöser 2019-07-25 12:36:30 UTC
Do I understand correctly that you want to drag and drop while this context menu is open?
Comment 4 Alberto Díaz López 2019-07-25 13:14:03 UTC
(In reply to Martin Flöser from comment #3)
> Do I understand correctly that you want to drag and drop while this context
> menu is open?

Nope, but that doesn't work either. I should opened two different bugs, sorry. One issue/bug is the one related with the context menu, another one is with the drag & drop event/action.
Comment 5 Vlad Zahorodnii 2019-07-30 15:50:13 UTC
(In reply to Martin Flöser from comment #3)
> Do I understand correctly that you want to drag and drop while this context
> menu is open?
It seems to me like this bug report is about the user actions popup menu not being dismissed when the user clicks outside it.

(In reply to Alberto Díaz López from comment #4)
> Nope, but that doesn't work either. I should opened two different bugs,
> sorry. One issue/bug is the one related with the context menu, another one
> is with the drag & drop event/action.
Please create a bug report per each bug. Tracking several bugs in one bug report is difficult.
Comment 6 Alberto Díaz López 2019-08-01 12:02:06 UTC
(In reply to Vlad Zahorodnii from comment #5)
> (In reply to Martin Flöser from comment #3)
> > Do I understand correctly that you want to drag and drop while this context
> > menu is open?
> It seems to me like this bug report is about the user actions popup menu not
> being dismissed when the user clicks outside it.

Exactly, you're totally right.

> (In reply to Alberto Díaz López from comment #4)
> > Nope, but that doesn't work either. I should opened two different bugs,
> > sorry. One issue/bug is the one related with the context menu, another one
> > is with the drag & drop event/action.
> Please create a bug report per each bug. Tracking several bugs in one bug
> report is difficult.

Yes, sorry, i won't be doing this way again.