mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
js: Queue 'later' via MetaLaters
This replaces the meta_later_add() API which used now removed global singletons under the hood. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2557>
This commit is contained in:
parent
387317aadc
commit
8d68bdaaa1
18 changed files with 66 additions and 33 deletions
|
|
@ -527,7 +527,8 @@ var WindowPreview = GObject.registerClass({
|
|||
this._delegate = null;
|
||||
|
||||
if (this._longPressLater) {
|
||||
Meta.later_remove(this._longPressLater);
|
||||
const laters = global.compositor.get_laters();
|
||||
laters.remove(this._longPressLater);
|
||||
delete this._longPressLater;
|
||||
}
|
||||
|
||||
|
|
@ -615,7 +616,8 @@ var WindowPreview = GObject.registerClass({
|
|||
|
||||
// A click cancels a long-press before any click handler is
|
||||
// run - make sure to not start a drag in that case
|
||||
this._longPressLater = Meta.later_add(Meta.LaterType.BEFORE_REDRAW, () => {
|
||||
const laters = global.compositor.get_laters();
|
||||
this._longPressLater = laters.add(Meta.LaterType.BEFORE_REDRAW, () => {
|
||||
delete this._longPressLater;
|
||||
if (this._selected) {
|
||||
this._selected = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue