Bug 376732

Summary: Broken QEvent::Enter and QEvent::Leave events in Dock type window with ContextMenus
Product: [Plasma] kwin Reporter: Michail Vourlakos <mvourlakos>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 5.9.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Michail Vourlakos 2017-02-20 20:33:54 UTC
We are hit by the following:

---
When an element in a QQuickWindow (Dock type) shows a contextmenu e.g. with right click and afterwards the user clicks at the outside areas, that is neither inside the QQuickWindow or the contextmenu.

then the QEvent:Enter and Leave events are not trigerred at all when the mouse enters or leaves the QQuickWindow
---
Qt version: 5.8.0
---

I filed a bug at: https://bugreports.qt.io/browse/QTBUG-59044

but I just thought that this may have something to do with the window manager.
Is this possible?

thank you a lot...

with regards,
michail
Comment 1 Michail Vourlakos 2017-02-20 20:36:12 UTC
I forgot to mention this was not found into plasmashell but at latte dock
Comment 2 Martin Flöser 2017-02-20 20:57:04 UTC
Nope, context menus are override redirect (or in Qt speak Qt::BypassX11WindowManagerHint) windows. The window manager has no doing in the events.
Comment 3 Michail Vourlakos 2017-02-20 20:59:22 UTC
thank you Martin...