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:
@ -327,8 +327,11 @@ var WorkspaceTracker = class {
|
||||
}
|
||||
|
||||
_queueCheckWorkspaces() {
|
||||
if (this._checkWorkspacesId == 0)
|
||||
this._checkWorkspacesId = Meta.later_add(Meta.LaterType.BEFORE_REDRAW, this._checkWorkspaces.bind(this));
|
||||
if (this._checkWorkspacesId === 0) {
|
||||
const laters = global.compositor.get_laters();
|
||||
this._checkWorkspacesId =
|
||||
laters.add(Meta.LaterType.BEFORE_REDRAW, this._checkWorkspaces.bind(this));
|
||||
}
|
||||
}
|
||||
|
||||
_nWorkspacesChanged() {
|
||||
|
Reference in New Issue
Block a user