about summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
authoroga <oga>2008-05-19 15:17:50 +0000
committeroga <oga>2008-05-19 15:17:50 +0000
commit43d6e147c2e0998f3e256fd2b90d85fd079429f4 (patch)
tree898746d31201c327b5ff30c322990f396c889277 /client.c
parent7957a470fd60e9d50057989595dd3b36010211e2 (diff)
downloadcwm-43d6e147c2e0998f3e256fd2b90d85fd079429f4.tar.gz
cwm-43d6e147c2e0998f3e256fd2b90d85fd079429f4.tar.xz
cwm-43d6e147c2e0998f3e256fd2b90d85fd079429f4.zip
Use the XGrabKeyboard hack in for alt-tabbing as well. This stops the
mru getting the order messed up when gvim/xpdf et all steal key events.

While i'm here, change the logic in client_cyclenext() to use break instead
of goto, it's nicer that way.

Thirdly, instead of two different kbfuncs, just use the one and a flag.

"put your cycle diff in so I can pkg_delete gvim" okan@
Diffstat (limited to 'client.c')
-rw-r--r--client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.c b/client.c
index dd50601..649ee32 100644
--- a/client.c
+++ b/client.c
@@ -620,10 +620,10 @@ client_cyclenext(int reverse)
 			if (again)
 				return (NULL);	/* No windows visible. */
 
-			goto done;
+			break;
 		}
 	}
-done:
+
 	/* reset when alt is released. XXX I hate this hack */
 	sc->altpersist = 1;
 	client_ptrsave(oldcc);