overview: Pass drag source on item-drag-* signals
Overview has signals to notify about starting, cancelling, and finishing icon drags, but none of these signals pass the dragged item to the callbacks. Pass the dragged items to the 'item-drag-*' overview signals. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1332
This commit is contained in:
parent
81be25bbd6
commit
821f3e8ddf
@ -440,19 +440,19 @@ var Overview = class {
|
|||||||
this.emit('windows-restacked', stackIndices);
|
this.emit('windows-restacked', stackIndices);
|
||||||
}
|
}
|
||||||
|
|
||||||
beginItemDrag(_source) {
|
beginItemDrag(source) {
|
||||||
this.emit('item-drag-begin');
|
this.emit('item-drag-begin', source);
|
||||||
this._inItemDrag = true;
|
this._inItemDrag = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
cancelledItemDrag(_source) {
|
cancelledItemDrag(source) {
|
||||||
this.emit('item-drag-cancelled');
|
this.emit('item-drag-cancelled', source);
|
||||||
}
|
}
|
||||||
|
|
||||||
endItemDrag(_source) {
|
endItemDrag(source) {
|
||||||
if (!this._inItemDrag)
|
if (!this._inItemDrag)
|
||||||
return;
|
return;
|
||||||
this.emit('item-drag-end');
|
this.emit('item-drag-end', source);
|
||||||
this._inItemDrag = false;
|
this._inItemDrag = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user