]> Dogcows Code - chaz/openbox/commitdiff
handle shape events
authorDana Jansens <danakj@orodu.net>
Mon, 24 Mar 2003 19:07:28 +0000 (19:07 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 24 Mar 2003 19:07:28 +0000 (19:07 +0000)
openbox/event.c

index 391493f4d183dc2b75ce5ed815914a2f9b9a7c18..0088085b65241fcd9d273645ae6e330cd11026b1 100644 (file)
@@ -135,16 +135,17 @@ void event_process(XEvent *e)
        window = e->xconfigurerequest.window;
        break;
     default:
-       /* XKB events */
-       if (e->type == extensions_xkb_event_basep) {
+#ifdef XKB
+       if (extensions_xkb && e->type == extensions_xkb_event_basep) {
            switch (((XkbAnyEvent*)&e)->xkb_type) {
            case XkbBellNotify:
                window = ((XkbBellNotifyEvent*)&e)->window;
            default:
                window = None;
            }
-       } else
-           window = e->xany.window;
+        } else
+#endif
+            window = e->xany.window;
     }
      
     /* grab the lasttime and hack up the state */
@@ -560,5 +561,13 @@ static void event_handle_client(Client *client, XEvent *e)
            client_update_icons(client);
        else if (msgtype == prop_atoms.kwm_win_icon)
            client_update_kwm_icon(client);
+    default:
+        ;
+#ifdef SHAPE
+        if (extensions_shape && e->type == extensions_shape_event_basep) {
+            client->shaped = ((XShapeEvent*)&e)->shaped;
+            engine_frame_adjust_shape(client->frame);
+        }
+#endif
     }
 }
This page took 0.025463 seconds and 4 git commands to generate.