[gnome-shell/gnome-3-8] boxpointer: fix left/right arrow side calculation
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-8] boxpointer: fix left/right arrow side calculation
- Date: Mon, 1 Jul 2013 16:54:26 +0000 (UTC)
commit c256154190428760a6fb61df38cb6a949ba63aef
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Mon Jul 1 18:37:59 2013 +0200
boxpointer: fix left/right arrow side calculation
Commit d6cace32 introduced a typo in the left/right arrow side
calculation code that causes in most scenarios (where the monitor
width is greater then the height) to not flip the box when it doesn't
fit inside the monitor.
https://bugzilla.gnome.org/show_bug.cgi?id=703403
js/ui/boxpointer.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/boxpointer.js b/js/ui/boxpointer.js
index 9f85e02..2fd1a67 100644
--- a/js/ui/boxpointer.js
+++ b/js/ui/boxpointer.js
@@ -589,12 +589,12 @@ const BoxPointer = new Lang.Class({
return St.Side.TOP;
break;
case St.Side.LEFT:
- if (sourceAllocation.y2 + boxWidth > monitor.x + monitor.width &&
+ if (sourceAllocation.x2 + boxWidth > monitor.x + monitor.width &&
boxWidth < sourceAllocation.x1 - monitor.x)
return St.Side.RIGHT;
break;
case St.Side.RIGHT:
- if (sourceAllocation.y1 - boxWidth < monitor.x &&
+ if (sourceAllocation.x1 - boxWidth < monitor.x &&
boxWidth < monitor.x + monitor.width - sourceAllocation.x2)
return St.Side.LEFT;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]