Fix dragging of App Well and Places icons
The hover rewrite added a freeze/thaw_notify to st_clickable_leave_event() (to match the one already in st_clickable_enter_event()), which broke code in two places that assumed "pressed" would still be TRUE when "hover" changed to FALSE. Fix that by exposing the "held" property as well.
This commit is contained in:
@ -451,7 +451,7 @@ AppWellIcon.prototype = {
|
||||
_onHoverChange: function(actor) {
|
||||
let hover = this.actor.hover;
|
||||
if (!hover) {
|
||||
if (this.actor.pressed && this._dragStartX != null) {
|
||||
if (this.actor.held && this._dragStartX != null) {
|
||||
this.actor.fake_release();
|
||||
this._draggable.startDrag(this._dragStartX, this._dragStartY,
|
||||
global.get_current_time());
|
||||
|
Reference in New Issue
Block a user