Prevent race at startup in detecting screen resolution changes

This commit is contained in:
o9000 2015-07-12 14:35:24 +02:00
parent c0e1709d57
commit efe9aadb39

View file

@ -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;