]> Dogcows Code - chaz/openbox/blobdiff - openbox/window.c
you can create dialog windows called "prompts" which have a message and some buttons...
[chaz/openbox] / openbox / window.c
index 28b08571375be05152be7a4ac8d308962611b5ed..88a727dfa583589e885c62678e5ecabef61cecb3 100644 (file)
@@ -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();
This page took 0.022601 seconds and 4 git commands to generate.