Mir

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

Bug #1506713 reported by Daniel van Vugt
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mir
Triaged
Medium
Unassigned
mir (Ubuntu)
Triaged
Medium
Unassigned
xorg-server (Ubuntu)
Won't Fix
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: input xmir
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
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: 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
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Xmir -rootless: Menus don't always close (need to support pointer grabs without confinement)

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
Revision history for this message
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?

Revision history for this message
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.

Changed in xorg-server (Ubuntu):
status: Triaged → Won't Fix
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.