From 6114cd8e88a0973b0adf4ca3ebb4e9357856c71c Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Tue, 25 May 2010 13:24:42 -0400 Subject: 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 --- src/core/display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/display.c b/src/core/display.c index 429230d5..4c7b4c06 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -4002,8 +4002,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); } } -- cgit v1.2.1