This is the same Plasma ContainmentInterface does. Otherwise QtQuick gets confused about mouse state.
Right clicked applet in systray, opened applet settings. Before that I didn't get hover effects in task manager and the next click on the panel ended up clicked where I last clicked (e.g. on the applet I just opened the config dialog from)
I'm not happy with this patch, Kai. I think ungrabbing should be done in one place, plasma-framework, and on menu destruction.
- Maximize window
- Right click on item in systray
- Select item from menu list
- Exclusive click is needed i.e. grab still stays in containment (Qt 5.8)