X-Git-Url: https://git.subgeniuskitty.com/xmenu/.git/blobdiff_plain/6abae763c6cce70c9b753778b5e3742a7719715a..705316fabeca799a0e4b75ecac77042525069e65:/xmenu.h diff --git a/xmenu.h b/xmenu.h index 051bc4a..5e369a2 100644 --- a/xmenu.h +++ b/xmenu.h @@ -1,5 +1,13 @@ #define PROGNAME "xmenu" +/* Actions for the main loop */ +#define ACTION_NOP 0 +#define ACTION_CLEAR 1<<0 /* clear text */ +#define ACTION_SELECT 1<<1 /* select item */ +#define ACTION_MAP 1<<2 /* remap menu windows */ +#define ACTION_DRAW 1<<3 /* redraw menu windows */ +#define ACTION_WARP 1<<4 /* warp the pointer */ + /* enum for keyboard menu navigation */ enum { ITEMPREV, ITEMNEXT, ITEMFIRST, ITEMLAST }; @@ -98,4 +106,5 @@ struct Menu { 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 */ };