summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2010-05-25 13:24:42 -0400
committerThomas Thurman <tthurman@gnome.org>2010-05-25 13:43:12 -0400
commit6114cd8e88a0973b0adf4ca3ebb4e9357856c71c (patch)
treef2e8d62bed781214032a41c1745d7968b975487d /src
parent871361beb6f1688b539a6bffcec2196ac3edeb04 (diff)
downloadmetacity-6114cd8e88a0973b0adf4ca3ebb4e9357856c71c.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/core/display.c4
1 files 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);
}
}