[Xfce4-commits] <xfwm4:master> Fix cursor wrapping in grid mode with only one row
Nick Schermer
noreply at xfce.org
Sun Feb 23 21:10:29 CET 2014
Updating branch refs/heads/master
to d7b2f5287ecb9e7da2ee33faf86656fc18b0a14e (commit)
from 8f9411380894cd7ccd4025ff528d8a8e19161bd5 (commit)
commit d7b2f5287ecb9e7da2ee33faf86656fc18b0a14e
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Thu Dec 12 11:53:19 2013 +0300
Fix cursor wrapping in grid mode with only one row
Signed-off-by: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
src/tabwin.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/tabwin.c b/src/tabwin.c
index 4572f06..4d6f887 100644
--- a/src/tabwin.c
+++ b/src/tabwin.c
@@ -974,7 +974,16 @@ tabwinSelectDelta (Tabwin *t, int row_delta, int col_delta)
else if (col_current >= cols)
{
col_current = 0;
- row_current++;
+ if (rows > 1)
+ {
+ row_current++;
+ }
+ else
+ {
+ /* If there's only 1 row then col needs to wrap back to
+ * the head of the grid */
+ col_current = 0;
+ }
}
/* Wrap row */
More information about the Xfce4-commits
mailing list