}
}
-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;
- }
-}
-
void event_add_fd_handler(event_fd_handler *h) {
g_datalist_id_set_data(&fd_handler_list, h->fd, h);
FD_SET(h->fd, &allset);
g_datalist_foreach(&fd_handler_list, fd_event_handle_foreach, NULL);
}
+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) {