Add a TODO comment

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-02-25 00:29:05 +00:00
parent 59ca5c9628
commit b76ff9fe5b
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 2 additions and 0 deletions

View File

@ -851,6 +851,8 @@ void configure_root(session_t *ps, int width, int height) {
if (!ps->backend_data) { if (!ps->backend_data) {
log_fatal("Failed to re-initialize backend after root change, aborting..."); log_fatal("Failed to re-initialize backend after root change, aborting...");
ps->quit = true; ps->quit = true;
// TODO only event handlers should request ev_break, otherwise it's too hard to
// keep track of what can break the event loop
ev_break(ps->loop, EVBREAK_ALL); ev_break(ps->loop, EVBREAK_ALL);
return; return;
} }