Menus don't always close (need to support pointer grabs without confinement)

Bug #1506713 reported by Daniel van Vugt on 2015-10-16
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mir
Triaged
Medium
Unassigned
mir (Ubuntu)
Medium
Unassigned
xorg-server (Ubuntu)
Medium
Daniel van Vugt

Bug Description

App menus don't always close when you click outside of them.

They only close (in some cases) if you click on the app itself or are forced to select a menu item.

This is an expected problem, as Mir does not yet implement pointer grabs, which is what toolkits use to auto-close menus when you click outside them.

tags: added: xmir
summary: - Xmir: App menus don't always close
+ Xmir: Menus don't always close
Changed in xorg-server (Ubuntu):
importance: Undecided → Medium
summary: - Xmir: Menus don't always close
+ Xmir -rootless: Menus don't always close

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mir (Ubuntu):
status: New → Confirmed
Changed in xorg-server (Ubuntu):
status: New → Confirmed

Confinement has been implemented as bug 1590099. But I think we're still missing this use case -- pointer grabs without confinement required for menus.

This means the menu surface receives all cursor events (even outside it) so that the first click outside the menu goes to the menu so it can close itself.

summary: - Xmir -rootless: Menus don't always close
+ Xmir -rootless: Menus don't always close (need to support pointer grabs
+ without confinement)
summary: - Xmir -rootless: Menus don't always close (need to support pointer grabs
- without confinement)
+ Menus don't always close (need to support pointer grabs without
+ confinement)
Changed in mir:
importance: Undecided → Medium
Changed in mir (Ubuntu):
importance: Undecided → Medium
Changed in mir:
status: New → Triaged
Changed in mir (Ubuntu):
status: Confirmed → Triaged
Changed in xorg-server (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
status: Confirmed → Triaged
tags: added: input
description: updated
Michał Sawicz (saviq) wrote :

Shouldn't this be part of the window management policy? To not rely on toolkits / apps to close their menu but close it arbitrarily?

Daniel van Vugt (vanvugt) wrote :

It might be possible but you're asking for years of bug reports in all the apps where such a hack doesn't quite work.

Better to implement grabs as toolkits use them and expect them to work already.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers