X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fprompt.h;h=b0ebad51e6380d9ca19dee53b733e8bc1543b846;hb=5130c1c28ac35fc62a10d8743eef2e9fa21efb20;hp=8d996ef30264f831a9ab4bd21318abc99d59c43a;hpb=f5c2d6d3798fdc70c8bbc5d8205cf20e2b2a7cd3;p=chaz%2Fopenbox 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 +#include 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