[mutter] Fix crash with --sync option
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] Fix crash with --sync option
- Date: Tue, 25 May 2010 18:14:46 +0000 (UTC)
commit f45083ce82e4c60e25abe969f65d41152414080b
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Tue May 25 13:24:42 2010 -0400
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index c160028..4e6dc3f 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]