x11: Don't keep an "in_init" variable

Instead, track the init state with a boolean argument.
This commit is contained in:
Benjamin Otte
2013-02-18 15:09:49 +01:00
parent 200d6fe664
commit b2043511ee
3 changed files with 11 additions and 17 deletions

View File

@ -1554,11 +1554,7 @@ _gdk_x11_screen_init_events (GdkScreen *screen)
{
GdkX11Screen *x11_screen = GDK_X11_SCREEN (screen);
/* Keep a flag to avoid extra notifies that we don't need
*/
x11_screen->xsettings_in_init = TRUE;
x11_screen->xsettings_client = _gdk_x11_xsettings_client_new (screen);
x11_screen->xsettings_in_init = FALSE;
}
/**