+ }
+ }
+}
+
+static void event_handle_slit(Slit *s, XEvent *e)
+{
+ switch (e->type) {
+ case ButtonPress:
+ stacking_raise(SLIT_AS_WINDOW(s));
+ case EnterNotify:
+ slit_hide(s, FALSE);
+ break;
+ case LeaveNotify:
+ slit_hide(s, TRUE);
+ break;
+ }
+}
+
+static void event_handle_slitapp(SlitApp *app, XEvent *e)
+{
+ switch (e->type) {
+ case MotionNotify:
+ slit_app_drag(app, &e->xmotion);
+ break;
+ case UnmapNotify:
+ if (app->ignore_unmaps) {
+ app->ignore_unmaps--;
+ break;
+ }
+ slit_remove(app, TRUE);
+ break;
+ case DestroyNotify:
+ slit_remove(app, FALSE);
+ break;
+ case ReparentNotify:
+ slit_remove(app, FALSE);
+ break;
+ case ConfigureNotify:
+ slit_app_configure(app, e->xconfigure.width, e->xconfigure.height);
+ break;