context menu remains open even if you click outside the main window, or the menu or resize the window
Bug #1671773 reported by
dinamic
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Incomplete
|
High
|
Michał Sawicz | ||
Ubuntu UX |
New
|
Undecided
|
Unassigned | ||
qtmir (Ubuntu) |
Incomplete
|
High
|
Unassigned |
Bug Description
ubuntu 17.04 unity8
the context menu remains open even if you click outside the main window, or the menu or resize the window
open krita, right click to open a context menu, now click outside the window or open the menu or resize the window, i think in unity7 it just closes the menu
you'll end up with strange results in unity8, having both menu and context opened, context outside the window etc. see attached screenshots
affects: | unity8 (Ubuntu) → qtmir (Ubuntu) |
Changed in canonical-devices-system-image: | |
status: | New → Triaged |
Changed in qtmir (Ubuntu): | |
status: | New → Triaged |
Changed in canonical-devices-system-image: | |
importance: | Undecided → High |
Changed in qtmir (Ubuntu): | |
importance: | Undecided → High |
Changed in canonical-devices-system-image: | |
assignee: | nobody → Michał Sawicz (saviq) |
milestone: | none → u8c-1 |
tags: | added: unity8-desktop |
To post a comment you must log in.
Unfortunately we probably can't fix this in a hurry.
It works in Unity7 because X allows the toolkit to acquire a pointer grab when a context menu opens. Then when the user clicks anywhere outside the menu, the menu is still the one that gets that event and it closes itself.
Such grabs are disallowed in the Unity8 architecture (last time I checked), so some apps relying on the old grabbing functionality will not auto-close their menus.
I think Unity8/Mir's preferred solution was for all toolkits to close their context menus when they lose focus. However that also won't work in future when we fix Mir to support menus that don't actually receive focus (bug 1671771, bug 1625846, bug 1671744, bug 1662733).
Needs a solution from architecture/ design. ..