Prevent race at startup in detecting screen resolution changes
This commit is contained in:
parent
c0e1709d57
commit
efe9aadb39
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue