summaryrefslogtreecommitdiff
path: root/openbox/window.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-02-06 21:35:55 -0500
committerDana Jansens <danakj@orodu.net>2008-02-07 02:14:43 -0500
commita01ece1353465ef471becdad3e448c32a4516f43 (patch)
tree535db6c286ebcb4962ac017cfb38a97f1451c246 /openbox/window.c
parenta0a9b0334b32e205da994b0395af1b544888a5dd (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/window.c')
-rw-r--r--openbox/window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbox/window.c b/openbox/window.c
index 28b08571..88a727df 100644
--- a/openbox/window.c
+++ b/openbox/window.c
@@ -23,6 +23,7 @@
#include "client.h"
#include "frame.h"
#include "openbox.h"
+#include "prompt.h"
#include "debug.h"
#include "grab.h"
@@ -57,6 +58,8 @@ Window window_top(ObWindow *self)
return WINDOW_AS_CLIENT(self)->frame->window;
case OB_WINDOW_CLASS_INTERNAL:
return WINDOW_AS_INTERNAL(self)->window;
+ case OB_WINDOW_CLASS_PROMPT:
+ return WINDOW_AS_PROMPT(self)->super.window;
}
g_assert_not_reached();
return None;
@@ -71,6 +74,7 @@ ObStackingLayer window_layer(ObWindow *self)
return ((ObClient*)self)->layer;
case OB_WINDOW_CLASS_MENUFRAME:
case OB_WINDOW_CLASS_INTERNAL:
+ case OB_WINDOW_CLASS_PROMPT:
return OB_STACKING_LAYER_INTERNAL;
}
g_assert_not_reached();