From f12addbc6e7454c7b5a7d767a031b963477e97eb Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Wed, 17 Apr 2013 13:08:33 +0200 Subject: [PATCH] Handle edges in window.c --- openbox/window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openbox/window.c b/openbox/window.c index ad61294d..3ca2d237 100644 --- a/openbox/window.c +++ b/openbox/window.c @@ -24,6 +24,7 @@ #include "frame.h" #include "openbox.h" #include "prompt.h" +#include "edges.h" #include "debug.h" #include "grab.h" #include "obt/xqueue.h" @@ -61,6 +62,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; @@ -73,6 +76,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; -- 2.34.1