diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-06 23:33:02 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-02-07 02:14:44 -0500 |
| commit | 5130c1c28ac35fc62a10d8743eef2e9fa21efb20 (patch) | |
| tree | d96c1bb47a9fddcffd78a27b9a6dbd418328929d /openbox/prompt.h | |
| parent | 5f31bde96d5ee1aef4da69e33e58b89829da3593 (diff) | |
make the prompt buttons respond to button presses. keyboard input code is there too but not working yet.
Diffstat (limited to 'openbox/prompt.h')
| -rw-r--r-- | openbox/prompt.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/openbox/prompt.h b/openbox/prompt.h index 8d996ef3..b0ebad51 100644 --- a/openbox/prompt.h +++ b/openbox/prompt.h @@ -26,12 +26,14 @@ typedef struct _ObPromptElement ObPromptElement; #include "geom.h" #include "render/render.h" #include <glib.h> +#include <X11/Xlib.h> struct _ObPromptElement { gchar *text; Window window; gint x, y, width, height; + gboolean pressed; }; struct _ObPrompt @@ -52,6 +54,9 @@ struct _ObPrompt /* one for each answer */ ObPromptElement *button; guint n_buttons; + + /* points to the button with the focus */ + ObPromptElement *focus; }; void prompt_startup(gboolean reconfig); @@ -64,6 +69,8 @@ void prompt_unref(ObPrompt *self); /*! Show the prompt. It will be centered within the given area rectangle */ void prompt_show(ObPrompt *self, struct _ObClient *parent); void prompt_hide(ObPrompt *self); -void prompt_hide_window(Window window); + +void prompt_key_event(ObPrompt *self, XEvent *e); +void prompt_mouse_event(ObPrompt *self, XEvent *e); #endif |
