From a6c20eb3713fc5e4b2c8f4075762b899bf9c1857 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sat, 25 Jun 2022 14:03:27 +0100 Subject: Don't double-draw background colour on first draw. This improves start-up performance for large windows. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index d02a109..120e7c2 100644 --- a/src/main.c +++ b/src/main.c @@ -90,6 +90,7 @@ static void wl_keyboard_keymap( { struct tofi *tofi = data; assert(format == WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1); + log_debug("Configuring keyboard.\n"); char *map_shm = mmap(NULL, size, PROT_READ, MAP_PRIVATE, fd, 0); assert(map_shm != MAP_FAILED); @@ -557,7 +558,7 @@ static const struct wl_surface_listener wl_surface_listener = { static void usage() { - fprintf(stderr, + fprintf(stderr, "%s", "Usage: tofi [options]\n" " -h, --help Print this message and exit.\n" " -c, --config Specify a config file.\n" @@ -891,7 +892,6 @@ int main(int argc, char *argv[]) tofi.window.surface.shm_pool_data, tofi.window.width, tofi.window.height); - entry_update(&tofi.window.entry); log_unindent(); log_debug("Renderer initialised.\n"); -- cgit v1.2.3