Fix disable breaking when overlay isn't set up
This commit is contained in:
parent
0d3971931b
commit
85a809031c
|
|
@ -142,18 +142,19 @@ export default class BreezyDesktopExtension extends Extension {
|
||||||
if (this._running_poller_id) GLib.source_remove(this._running_poller_id);
|
if (this._running_poller_id) GLib.source_remove(this._running_poller_id);
|
||||||
|
|
||||||
Meta.enable_unredirect_for_display(global.display);
|
Meta.enable_unredirect_for_display(global.display);
|
||||||
this._overlay.remove_effect_by_name('xr-desktop');
|
|
||||||
if (this._xr_effect) {
|
|
||||||
this._xr_effect.unref();
|
|
||||||
this._xr_effect = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this._overlay) {
|
if (this._overlay) {
|
||||||
|
this._overlay.remove_effect_by_name('xr-desktop');
|
||||||
global.stage.remove_child(this._overlay);
|
global.stage.remove_child(this._overlay);
|
||||||
this._overlay.destroy();
|
this._overlay.destroy();
|
||||||
this._overlay = null;
|
this._overlay = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this._xr_effect) {
|
||||||
|
this._xr_effect.unref();
|
||||||
|
this._xr_effect = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (this._cursor_manager) {
|
if (this._cursor_manager) {
|
||||||
this._cursor_manager.disable();
|
this._cursor_manager.disable();
|
||||||
this._cursor_manager = null;
|
this._cursor_manager = null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue