Fix crash with --sync option

If the display hasn't been initialized yet, just change the
start variable and don't update the display.

https://bugzilla.gnome.org/show_bug.cgi?id=618613
This commit is contained in:
Owen W. Taylor 2010-05-25 13:24:42 -04:00
parent 4c143ae9af
commit f45083ce82

View File

@ -4169,8 +4169,8 @@ meta_set_syncing (gboolean setting)
if (setting != is_syncing)
{
is_syncing = setting;
XSynchronize (meta_get_display ()->xdisplay, is_syncing);
if (meta_get_display ())
XSynchronize (meta_get_display ()->xdisplay, is_syncing);
}
}