[gnome-shell] altTab: remove erroneous/superflous pick
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] altTab: remove erroneous/superflous pick
- Date: Tue, 17 May 2011 19:42:19 +0000 (UTC)
commit 71dfab97113d03d0ea722e071f513f53f8572eae
Author: Dan Winship <danw gnome org>
Date: Thu May 5 07:22:07 2011 -0400
altTab: remove erroneous/superflous pick
AltTabPopup was calling global.stage.get_actor_at_pos() "to force a
stage relayout", but that function does not actually have that effect.
It was also occasionally causing Clutter warnings (possibly due to a
clutter pick-buffer-caching bug?). So just remove the call.
https://bugzilla.gnome.org/show_bug.cgi?id=650317
js/ui/altTab.js | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 47ab84d..5581d0d 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -97,8 +97,6 @@ AltTabPopup.prototype = {
// those calculations
if (this._thumbnails) {
let icon = this._appIcons[this._currentApp].actor;
- // Force a stage relayout to make sure we get the correct position
- global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE, 0, 0);
let [posX, posY] = icon.get_transformed_position();
let thumbnailCenter = posX + icon.width / 2;
let [childMinWidth, childNaturalWidth] = this._thumbnails.actor.get_preferred_width(-1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]