diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-06 21:35:55 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-02-07 02:14:43 -0500 |
| commit | a01ece1353465ef471becdad3e448c32a4516f43 (patch) | |
| tree | 535db6c286ebcb4962ac017cfb38a97f1451c246 /openbox/event.c | |
| parent | a0a9b0334b32e205da994b0395af1b544888a5dd (diff) | |
you can create dialog windows called "prompts" which have a message and some buttons! they don't do anything interesting yet.
Diffstat (limited to 'openbox/event.c')
| -rw-r--r-- | openbox/event.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/event.c b/openbox/event.c index 73797496..4591009e 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -29,6 +29,7 @@ #include "frame.h" #include "grab.h" #include "menu.h" +#include "prompt.h" #include "menuframe.h" #include "keyboard.h" #include "mouse.h" @@ -466,6 +467,7 @@ static void event_process(const XEvent *ec, gpointer data) ObDockApp *dockapp = NULL; ObWindow *obwin = NULL; ObMenuFrame *menu = NULL; + ObPrompt *prompt = NULL; /* make a copy we can mangle */ ee = *ec; @@ -488,6 +490,9 @@ static void event_process(const XEvent *ec, gpointer data) case OB_WINDOW_CLASS_INTERNAL: /* we don't do anything with events directly on these windows */ break; + case OB_WINDOW_CLASS_PROMPT: + prompt = WINDOW_AS_PROMPT(obwin); + break; } } else |
