From 02aae631d8028d770b0a333e3eae0c014cfd0aba Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Sat, 11 Feb 2012 02:39:38 +0100 Subject: [PATCH] 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 file changed, 8 deletions(-) diff --git a/src/st/st-widget.c b/src/st/st-widget.c index 98864dab5..a1258c431 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: