From 12d792f427a99723256470b24cc03b46cbd22428 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 18 May 2015 16:25:08 -0400 Subject: [PATCH] only create our own Display* in embedding when using OSR --- ports/cef/core.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ports/cef/core.rs b/ports/cef/core.rs index a06df477eb9..aa49bb17b51 100644 --- a/ports/cef/core.rs +++ b/ports/cef/core.rs @@ -70,7 +70,9 @@ pub extern "C" fn cef_initialize(args: *const cef_main_args_t, temp_opts.url = Url::parse(HOME_URL).unwrap(); opts::set(temp_opts); - init_window(); + if unsafe { (*settings).windowless_rendering_enabled != 0 } { + init_window(); + } return 1 }