From d8d2fd7148c46eb4acba9d647adaddfa906c0652 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 28 Jul 2003 16:24:20 +0000 Subject: [PATCH] make things compile again. hover does not work yet. --- openbox/event.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/openbox/event.c b/openbox/event.c index fba86cfb..4f9f61dc 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -600,6 +600,7 @@ static void event_handle_client(ObClient *client, XEvent *e) XEvent ce; Atom msgtype; int i=0; + ObFrameContext con; switch (e->type) { case ButtonPress: @@ -658,6 +659,18 @@ static void event_handle_client(ObClient *client, XEvent *e) frame_adjust_focus(client->frame, FALSE); break; case EnterNotify: + switch (con) { + case OB_FRAME_CONTEXT_MAXIMIZE: + case OB_FRAME_CONTEXT_ALLDESKTOPS: + case OB_FRAME_CONTEXT_SHADE: + case OB_FRAME_CONTEXT_ICONIFY: + case OB_FRAME_CONTEXT_CLOSE: + g_message("hi"); + frame_adjust_state(client->frame); + break; + default: + break; + } con = frame_context(client, e->xcrossing.subwindow); if (client_normal(client)) { if (ob_state() == OB_STATE_STARTING) { -- 2.45.2