Prevent race at startup in detecting screen resolution changes
This commit is contained in:
@@ -239,6 +239,9 @@ void init_X11_pre_config()
|
|||||||
// config file use '.' as decimal separator
|
// config file use '.' as decimal separator
|
||||||
setlocale(LC_NUMERIC, "POSIX");
|
setlocale(LC_NUMERIC, "POSIX");
|
||||||
|
|
||||||
|
/* Catch events */
|
||||||
|
XSelectInput (server.dsp, server.root_win, PropertyChangeMask|StructureNotifyMask);
|
||||||
|
|
||||||
// get monitor and desktop config
|
// get monitor and desktop config
|
||||||
get_monitors();
|
get_monitors();
|
||||||
get_desktops();
|
get_desktops();
|
||||||
@@ -277,9 +280,6 @@ void init_X11_post_config()
|
|||||||
imlib_context_set_visual (server.visual);
|
imlib_context_set_visual (server.visual);
|
||||||
imlib_context_set_colormap (server.colormap);
|
imlib_context_set_colormap (server.colormap);
|
||||||
|
|
||||||
/* Catch events */
|
|
||||||
XSelectInput (server.dsp, server.root_win, PropertyChangeMask|StructureNotifyMask);
|
|
||||||
|
|
||||||
// load default icon
|
// load default icon
|
||||||
gchar *path;
|
gchar *path;
|
||||||
const gchar * const *data_dirs;
|
const gchar * const *data_dirs;
|
||||||
|
|||||||
Reference in New Issue
Block a user