[gnome-shell] st-widget: Allow diagonal moves for directional keynav
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] st-widget: Allow diagonal moves for directional keynav
- Date: Sat, 10 Mar 2012 14:03:09 +0000 (UTC)
commit 02aae631d8028d770b0a333e3eae0c014cfd0aba
Author: Rui Matos <tiagomatos gmail com>
Date: Sat Feb 11 02:39:38 2012 +0100
st-widget: Allow diagonal moves for directional keynav
This allows us to do directional keyboard navigation when there's no
actor inside the horizontal or vertical strip extending from the
origin actor but there are other actors to the sides of that strip
that could still be used as targets even if that means the focus would
move diagonally.
https://bugzilla.gnome.org/show_bug.cgi?id=663901
src/st/st-widget.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/st/st-widget.c b/src/st/st-widget.c
index 98864da..a1258c4 100644
--- a/src/st/st-widget.c
+++ b/src/st/st-widget.c
@@ -1728,29 +1728,21 @@ filter_by_position (GList *children,
case GTK_DIR_UP:
if (cbox.y2 > rbox->y1 + 0.1)
continue;
- if (cbox.x1 >= rbox->x2 || cbox.x2 <= rbox->x1)
- continue;
break;
case GTK_DIR_DOWN:
if (cbox.y1 < rbox->y2 - 0.1)
continue;
- if (cbox.x1 >= rbox->x2 || cbox.x2 <= rbox->x1)
- continue;
break;
case GTK_DIR_LEFT:
if (cbox.x2 > rbox->x1 + 0.1)
continue;
- if (cbox.y1 >= rbox->y2 || cbox.y2 <= rbox->y1)
- continue;
break;
case GTK_DIR_RIGHT:
if (cbox.x1 < rbox->x2 - 0.1)
continue;
- if (cbox.y1 >= rbox->y2 || cbox.y2 <= rbox->y1)
- continue;
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]