backgroundMenu: Ignore releases when using long-press
Otherwise, a release from the long-press will be seen as a button event that should close the menu. https://bugzilla.gnome.org/show_bug.cgi?id=697203
This commit is contained in:
parent
09aa59f98b
commit
92e5d2b8f5
@ -46,8 +46,10 @@ function addBackgroundMenu(actor) {
|
||||
clickAction.connect('long-press', function(action, actor, state) {
|
||||
if (state == Clutter.LongPressState.QUERY)
|
||||
return action.get_button() == 1 && !actor._backgroundMenu.isOpen;
|
||||
if (state == Clutter.LongPressState.ACTIVATE)
|
||||
if (state == Clutter.LongPressState.ACTIVATE) {
|
||||
openMenu();
|
||||
actor._backgroundManager.ignoreRelease();
|
||||
}
|
||||
return true;
|
||||
});
|
||||
clickAction.connect('clicked', function(action) {
|
||||
|
Loading…
Reference in New Issue
Block a user