Handle edges in window.c
authorMikael Magnusson <mikachu@gmail.com>
Wed, 17 Apr 2013 11:08:33 +0000 (13:08 +0200)
committerMikael Magnusson <mikachu@gmail.com>
Sat, 11 Oct 2014 00:17:21 +0000 (02:17 +0200)
openbox/window.c

index 51806f9..3d23143 100644 (file)
@@ -24,6 +24,7 @@
 #include "frame.h"
 #include "openbox.h"
 #include "prompt.h"
+#include "edges.h"
 #include "debug.h"
 #include "grab.h"
 #include "obt/prop.h"
@@ -62,6 +63,8 @@ Window window_top(ObWindow *self)
         return WINDOW_AS_INTERNAL(self)->window;
     case OB_WINDOW_CLASS_PROMPT:
         return WINDOW_AS_PROMPT(self)->super.window;
+    case OB_WINDOW_CLASS_EDGE:
+        return WINDOW_AS_EDGE(self)->win;
     }
     g_assert_not_reached();
     return None;
@@ -74,6 +77,7 @@ ObStackingLayer window_layer(ObWindow *self)
         return config_dock_layer;
     case OB_WINDOW_CLASS_CLIENT:
         return ((ObClient*)self)->layer;
+    case OB_WINDOW_CLASS_EDGE:
     case OB_WINDOW_CLASS_MENUFRAME:
     case OB_WINDOW_CLASS_INTERNAL:
         return OB_STACKING_LAYER_INTERNAL;