]> Dogcows Code - chaz/openbox/commitdiff
make things compile again. hover does not work yet.
authorDana Jansens <danakj@orodu.net>
Mon, 28 Jul 2003 16:24:20 +0000 (16:24 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 28 Jul 2003 16:24:20 +0000 (16:24 +0000)
openbox/event.c

index fba86cfb3a58bcd27b4c1f99a0f17d690e56579b..4f9f61dc6022bb093b7e85d08dbefdf5a352e2a6 100644 (file)
@@ -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) {
This page took 0.025619 seconds and 4 git commands to generate.