GNOME Bugzilla – Bug 696422
dash: Dismissing context menu may activate window
Last modified: 2013-09-07 01:58:12 UTC
This was fixed in bug 661151, but the port to grabHelper brought it back: - right click dash item - click on a preview in the window picker => button press dismisses the menu (expected), button release activates the window (unexpected) The cause is that grabHelper ungrabs() on ButtonPress, and then let the emission of the same event continue. See patch.
Created attachment 239576 [details] [review] grabHelper: Consider events that release the grab handled Currently, if a button-press event results in releasing the last modal grab (e.g. clicks outside the grabbed actors), we don't consider the event handled and allow its emission to continue. If we consider dismissing a grab as an action of its own, any additional action triggered by the same event becomes an unexpected side effect. Tweak the capture handler accordingly.
Review of attachment 239576 [details] [review]: Looks correct. Up to you if this constitutes freeze break or not.
Pushing after r-t approval. Attachment 239576 [details] pushed as f8ea825 - grabHelper: Consider events that release the grab handled
*** Bug 694193 has been marked as a duplicate of this bug. ***