From 43d6e147c2e0998f3e256fd2b90d85fd079429f4 Mon Sep 17 00:00:00 2001 From: oga Date: Mon, 19 May 2008 15:17:50 +0000 Subject: 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@ --- calmwm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index f420f6d..ea16589 100644 --- a/calmwm.h +++ b/calmwm.h @@ -221,6 +221,9 @@ TAILQ_HEAD(winmatch_q, winmatch); /* for cwm_exec */ #define CWM_EXEC_PROGRAM 0x1 #define CWM_EXEC_WM 0x2 +/* For alt-tab */ +#define CWM_CYCLE 0x0 +#define CWM_RCYCLE 0x1 #define KBFLAG_NEEDCLIENT 0x01 -- cgit 1.4.1