[gnome-shell] overview: Don't pick for every overlay
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] overview: Don't pick for every overlay
- Date: Mon, 21 Mar 2011 22:07:52 +0000 (UTC)
commit c81c564941c7cf7a877fac732e4f709b8f3fd846
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Mon Mar 21 14:46:46 2011 -0400
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 <adel gadllah gmail com>
https://bugzilla.gnome.org/show_bug.cgi?id=638613
js/ui/overview.js | 1 +
js/ui/workspace.js | 6 ------
2 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 34ebec5..40cd852 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 974893a..be973b6 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();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]