[Xfce4-commits] <xfwm4:ochosi/tabwin> Fix cursor wrapping in grid mode with only one row
Simon Steinbeiss
noreply at xfce.org
Thu Dec 12 10:22:01 CET 2013
Updating branch refs/heads/ochosi/tabwin
to 43c4cbe83ceb9e1e9deb416e785871fe9ebbdf52 (commit)
from 32337d3fa001f2fdea64c436c78d91d48ccadd38 (commit)
commit 43c4cbe83ceb9e1e9deb416e785871fe9ebbdf52
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