Include secondary monitors in click empty to close overview

This commit is contained in:
Charles Gagnon
2022-04-06 23:17:38 -04:00
parent 97a7a79581
commit 1cfffb4865
2 changed files with 3 additions and 3 deletions

View File

@@ -421,7 +421,7 @@ var Overview = class {
this._oldOverviewReactive = Main.overview._overview.reactive
Main.overview._overview.reactive = true;
Utils.hookVfunc(Object.getPrototypeOf(Main.overview._overview), 'button_release_event', () => {
Utils.hookVfunc(Object.getPrototypeOf(Main.layoutManager.overviewGroup), 'button_release_event', () => {
let [x, y] = global.get_pointer();
let pickedActor = global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE, x, y);
@@ -448,7 +448,7 @@ var Overview = class {
return;
Main.overview._overview.reactive = this._oldOverviewReactive;
Utils.hookVfunc(Object.getPrototypeOf(Main.overview._overview), 'button_release_event', null)
Utils.hookVfunc(Object.getPrototypeOf(Main.layoutManager.overviewGroup), 'button_release_event', null)
this._clickToExitEnabled = false;
}

View File

@@ -276,7 +276,7 @@ var mergeObjects = function(main, bck) {
var hookVfunc = function(proto, symbol, func) {
if (!func) return
if (Gi.gobject_prototype_symbol) {
if (Gi.gobject_prototype_symbol && proto[Gi.gobject_prototype_symbol]) {
proto[Gi.gobject_prototype_symbol][Gi.hook_up_vfunc_symbol] (symbol, func);
} else {
proto[Gi.hook_up_vfunc_symbol] (symbol, func);