From efe9aadb39507d7d3b76d864051502f27f312c4e Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 12 Jul 2015 14:35:24 +0200 Subject: [PATCH] Prevent race at startup in detecting screen resolution changes --- src/tint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tint.c b/src/tint.c index 6330ef0..23a0f8c 100644 --- a/src/tint.c +++ b/src/tint.c @@ -239,6 +239,9 @@ void init_X11_pre_config() // config file use '.' as decimal separator setlocale(LC_NUMERIC, "POSIX"); + /* Catch events */ + XSelectInput (server.dsp, server.root_win, PropertyChangeMask|StructureNotifyMask); + // get monitor and desktop config get_monitors(); get_desktops(); @@ -277,9 +280,6 @@ void init_X11_post_config() imlib_context_set_visual (server.visual); imlib_context_set_colormap (server.colormap); - /* Catch events */ - XSelectInput (server.dsp, server.root_win, PropertyChangeMask|StructureNotifyMask); - // load default icon gchar *path; const gchar * const *data_dirs;