context menu remains open even if you click outside the main window, or the menu or resize the window

Bug #1671773 reported by dinamic
6
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

Revision history for this message
dinamic (dinamic6661) wrote :
Revision history for this message
dinamic (dinamic6661) wrote :
Michał Sawicz (saviq)
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
kevin gunn (kgunn72)
tags: added: unity8-desktop
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

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...

Changed in qtmir (Ubuntu):
status: Triaged → Incomplete
Changed in canonical-devices-system-image:
status: Triaged → Incomplete
Revision history for this message
Michał Sawicz (saviq) wrote :

Wasn't the plan for *Mir* to close menus and tooltips when the parent surface loses focus?

Changed in canonical-devices-system-image:
milestone: u8c-1 → u8c-2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.