summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux2014-07-21 17:54:13 -0400
committerQuentin Carbonneaux2014-07-21 17:54:13 -0400
commitdf7edeec7e06e9cd104868b0bff9e0962312bc40 (patch)
treed7076ec3c43d17fe35189a6ffa26490a89b59070
parente2d8b78074c5b0982e6de56c29033dbba925411e (diff)
flush the Xlib queue before entering ev_loop
If not, the initial resize event sent by x11.c can be missed resulting in a blank screen that lasts until the first user interaction.
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 0927385..b6d8d48 100644
--- a/main.c
+++ b/main.c
@@ -79,6 +79,7 @@ main(int ac, char *av[])
eb_read(eb, eb->path = ac > 1 ? av[1] : "dummy.txt");
curwin = win_new(eb);
+ gev(0, ERead, 0);
ev_loop();
}