[gnome-shell] AppSwitcher: Make sure we always get the correct icon position
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] AppSwitcher: Make sure we always get the correct icon position
- Date: Fri, 26 Mar 2010 17:12:41 +0000 (UTC)
commit 6461db9df6b628b0326db9ff016ae984660613da
Author: Adel Gadllah <adel gadllah gmail com>
Date: Fri Mar 26 18:12:01 2010 +0100
AppSwitcher: Make sure we always get the correct icon position
Call stage.get_actor_at_pos before calling icon.get_transformed_position.
js/ui/altTab.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index fb31b9a..fefa3b4 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -100,6 +100,8 @@ 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]