summaryrefslogtreecommitdiff
path: root/app/cwm/calmwm.h
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-05-19 15:17:51 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-05-19 15:17:51 +0000
commite02e9e633cf8bb26bd965d2daf104779ed0f6092 (patch)
tree999ec3c0da666356eb89deddc86621950a6b3912 /app/cwm/calmwm.h
parent77606d11417d3e2910ac693bfe907ac2b11ef6da (diff)
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 'app/cwm/calmwm.h')
-rw-r--r--app/cwm/calmwm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/cwm/calmwm.h b/app/cwm/calmwm.h
index 9c656806f..78c0268aa 100644
--- a/app/cwm/calmwm.h
+++ b/app/cwm/calmwm.h
@@ -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.
*
- * $Id: calmwm.h,v 1.42 2008/05/19 12:56:58 okan Exp $
+ * $Id: calmwm.h,v 1.43 2008/05/19 15:17:50 oga Exp $
*/
#ifndef _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