servo: Merge #11252 - glutin: On the Mac, capitalize the first letter of "Servo" in the menu bar (from pcwalton:app-name); r=nox
authorPatrick Walton <pcwalton@mimiga.net>
Wed, 18 May 2016 09:39:16 -0700
changeset 338837 76bb17595466175cc53f708fd5043bf714f82ce8
parent 338836 e2c0d2224d0a7913ad09500840f5fe8abc5720d4
child 338838 ad573a1c9815333d750d231e8223ddd8f72c9ca8
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnox
servo: Merge #11252 - glutin: On the Mac, capitalize the first letter of "Servo" in the menu bar (from pcwalton:app-name); r=nox r? @metajack (or whoever) Source-Repo: https://github.com/servo/servo Source-Revision: e36e41191fa083a6354b759df7660be4e0f4a4bd
servo/ports/glutin/window.rs
--- a/servo/ports/glutin/window.rs
+++ b/servo/ports/glutin/window.rs
@@ -72,17 +72,17 @@ const MULTISAMPLES: u16 = 16;
 #[cfg(target_os = "macos")]
 fn builder_with_platform_options(mut builder: glutin::WindowBuilder) -> glutin::WindowBuilder {
     if opts::get().headless || opts::get().output_file.is_some() {
         // Prevent the window from showing in Dock.app, stealing focus,
         // or appearing at all when running in headless mode or generating an
         // output file.
         builder = builder.with_activation_policy(ActivationPolicy::Prohibited)
     }
-    builder
+    builder.with_app_name(String::from("Servo"))
 }
 
 #[cfg(not(target_os = "macos"))]
 fn builder_with_platform_options(builder: glutin::WindowBuilder) -> glutin::WindowBuilder {
     builder
 }
 
 /// The type of a window.