static void event_process(const XEvent *e, gpointer data);
static void event_done(gpointer data);
+static void event_client_dest(ObClient *client, gpointer data);
static void event_handle_root(XEvent *e);
static void event_handle_menu(XEvent *e);
static void event_handle_dock(ObDock *s, XEvent *e);
#endif
client_add_destructor(focus_delay_client_dest, NULL);
+ client_add_destructor(event_client_dest, NULL);
}
void event_shutdown(gboolean reconfig)
return FALSE;
}
+static void event_client_dest(ObClient *client, gpointer data)
+{
+ if (client == focus_in)
+ focus_in = NULL;
+ if (client == focus_out)
+ focus_out = NULL;
+}
+
static void event_done(gpointer data)
{
static ObClient *last = NULL;