From c81c564941c7cf7a877fac732e4f709b8f3fd846 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Mon, 21 Mar 2011 14:46:46 -0400 Subject: [PATCH] overview: Don't pick for every overlay Don't do an individual hover fixup for every window overlay, instead just use the new global.sync_hover() to fix up hovers once we have finished showing the overview. Based on a patch from Adel Gadllah https://bugzilla.gnome.org/show_bug.cgi?id=638613 --- js/ui/overview.js | 1 + js/ui/workspace.js | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/js/ui/overview.js b/js/ui/overview.js index 34ebec541..40cd85272 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -690,6 +690,7 @@ Overview.prototype = { this._animateNotVisible(); this._syncInputMode(); + global.sync_pointer(); }, _hideDone: function() { diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 974893a27..be973b60e 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -394,12 +394,6 @@ WindowOverlay.prototype = { show: function() { this._hidden = false; - let [x, y, mask] = global.get_pointer(); - let actor = global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE, - x, y); - if (actor == this._windowClone.actor) { - this.closeButton.show(); - } this.title.show(); },