workpaceThumbnail: Fix accidental propagation of button releases
A right click was propagating through to the parent actor meaning that a right click would activate the workspace twice and leave the overview instead of just switching to it. https://bugzilla.gnome.org/show_bug.cgi?id=641973
This commit is contained in:
parent
2d716041f1
commit
914e5d30c7
@ -44,8 +44,6 @@ WindowClone.prototype = {
|
||||
this._draggable.connect('drag-begin', Lang.bind(this, this._onDragBegin));
|
||||
this._draggable.connect('drag-end', Lang.bind(this, this._onDragEnd));
|
||||
this.inDrag = false;
|
||||
|
||||
this._selected = false;
|
||||
},
|
||||
|
||||
setStackAbove: function (actor) {
|
||||
@ -91,8 +89,9 @@ WindowClone.prototype = {
|
||||
},
|
||||
|
||||
_onButtonRelease : function (actor, event) {
|
||||
this._selected = true;
|
||||
this.emit('selected', event.get_time());
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
_onDragBegin : function (draggable, time) {
|
||||
|
Loading…
Reference in New Issue
Block a user