add type-to-select support
[xmenu] / xmenu.h
diff --git a/xmenu.h b/xmenu.h
index 051bc4a..bccc39e 100644 (file)
--- a/xmenu.h
+++ b/xmenu.h
@@ -1,5 +1,11 @@
 #define PROGNAME "xmenu"
 
 #define PROGNAME "xmenu"
 
+/* Actions for the main loop */
+#define ACTION_NOP    0
+#define ACTION_SELECT 1<<0      /* select item and clear text */
+#define ACTION_MAP    1<<1      /* remap menu windows */
+#define ACTION_DRAW   1<<2      /* redraw menu windows */
+
 /* enum for keyboard menu navigation */
 enum { ITEMPREV, ITEMNEXT, ITEMFIRST, ITEMLAST };
 
 /* enum for keyboard menu navigation */
 enum { ITEMPREV, ITEMNEXT, ITEMFIRST, ITEMLAST };
 
@@ -98,4 +104,5 @@ struct Menu {
        int maxtextw;           /* maximum text width */
        unsigned level;         /* menu level relative to root */
        Window win;             /* menu window to map on the screen */
        int maxtextw;           /* maximum text width */
        unsigned level;         /* menu level relative to root */
        Window win;             /* menu window to map on the screen */
+       XIC xic;                /* input context */
 };
 };