From: Dana Jansens Date: Mon, 26 May 2003 23:36:43 +0000 (+0000) Subject: add case for Window_Decoration X-Git-Tag: gl2~100 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=f700d163e104d085e6d092e35cf51cb73728b5d5;p=dana%2Fopenbox.git add case for Window_Decoration --- diff --git a/openbox/event.c b/openbox/event.c index b6126464..b89ec8b5 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -442,6 +442,9 @@ static void event_process(XEvent *e) case Window_Client: client = WINDOW_AS_CLIENT(obwin); break; + case Window_Decoration: + client = WINDOW_AS_DECORATION(obwin)->client; + break; case Window_Internal: /* not to be used for events */ g_assert_not_reached(); diff --git a/openbox/window.c b/openbox/window.c index ed139b64..9b8b91b0 100644 --- a/openbox/window.c +++ b/openbox/window.c @@ -25,6 +25,7 @@ Window window_top(ObWindow *self) case Window_Dock: return ((Dock*)self)->frame; case Window_DockApp: + case Window_Decoration: /* not to be used for stacking */ g_assert_not_reached(); break; @@ -45,6 +46,7 @@ Window window_layer(ObWindow *self) case Window_Dock: return config_dock_layer; case Window_DockApp: + case Window_Decoration: /* not to be used for stacking */ g_assert_not_reached(); break;