diff options
author | okan | 2012-05-16 01:09:17 +0000 |
---|---|---|
committer | okan | 2012-05-16 01:09:17 +0000 |
commit | 0d42809e06455c0a8cd1f170f15e81c812e7ef61 (patch) | |
tree | 0e24de841f00362538546f9550c56edd3d006672 /client.c | |
parent | ec7333262c7838cbfe2490d704f53de385dbace2 (diff) | |
download | cwm-0d42809e06455c0a8cd1f170f15e81c812e7ef61.tar.gz |
cycle through other common cycling modifiers; based on a diff from
Alexander Polakov.
ok sthen@
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: client.c,v 1.93 2012/05/13 15:17:13 okan Exp $ + * $OpenBSD: client.c,v 1.94 2012/05/16 01:09:17 okan Exp $ */ #include <sys/param.h> @@ -644,6 +644,18 @@ client_cycle(struct screen_ctx *sc, int flags) client_ptrwarp(newcc); } +void +client_cycle_leave(struct screen_ctx *sc, struct client_ctx *cc) +{ + sc->cycling = 0; + + client_mtf(NULL); + if (cc) { + group_sticky_toggle_exit(cc); + XUngrabKeyboard(X_Dpy, CurrentTime); + } +} + static struct client_ctx * client_mrunext(struct client_ctx *cc) { |