]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Rename window's class to Atom
authorMatthieu Baerts <matttbe@gmail.com>
Sun, 12 Oct 2014 16:47:49 +0000 (18:47 +0200)
committerMatthieu Baerts <matttbe@gmail.com>
Sun, 12 Oct 2014 16:47:49 +0000 (18:47 +0200)
The window's class should be Atom instead of Atom Shell because the
launcher and the binary to launch Atom are called 'atom' and not 'atom
shell'. This is why currently all Atom's windows will not be linked to
their launcher in a dock (e.g. with Cairo-Dock).

Note that it's not advised to add white-spaces in a window's class
('Atom Shell').

atom/browser/native_window_views.cc

index 60eb70a71c5e2d428489317d2f052efb6dee133a..0429ee35249ba421ec7f231983b29cfa3d27a454 100644 (file)
@@ -155,8 +155,8 @@ NativeWindowViews::NativeWindowViews(content::WebContents* web_contents,
       "%s/%s/%d", "Atom Shell", Browser::Get()->GetName().c_str(),
       ++kWindowsCreated);
   // Set WM_CLASS.
-  params.wm_class_name = "atom-shell";
-  params.wm_class_class = "Atom Shell";
+  params.wm_class_name = "atom";
+  params.wm_class_class = "Atom";
 #endif
 
   window_->Init(params);