Commit 6ec606c2 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels
Browse files

prefs: check if we have a valid display

Display will be null when libmetacity-private will be used in
compiz.
parent f3e2e01e
...@@ -1920,6 +1920,9 @@ meta_prefs_get_compositing_manager (void) ...@@ -1920,6 +1920,9 @@ meta_prefs_get_compositing_manager (void)
display = meta_get_display (); display = meta_get_display ();
if (!display)
return compositing_manager;
if (!compositing_manager) if (!compositing_manager)
warned = FALSE; warned = FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment