summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-06-25 14:03:27 +0100
committerPhil Jones <philj56@gmail.com>2022-06-25 14:03:27 +0100
commita6c20eb3713fc5e4b2c8f4075762b899bf9c1857 (patch)
tree3917d4528964fc8a24a518cc0401efe1e2e47508 /src/main.c
parenteacb7c80619dd0c2d8bf601215374f64779373b6 (diff)
Don't double-draw background colour on first draw.
This improves start-up performance for large windows.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
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");