]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Set WM_CLASS for devtools window
authorCheng Zhao <zcbenz@gmail.com>
Mon, 24 Nov 2014 08:04:41 +0000 (16:04 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 24 Nov 2014 08:04:41 +0000 (16:04 +0800)
atom/browser/native_window_views.cc
atom/browser/native_window_views.h
vendor/brightray

index f9dcd3a4c8f43a97d5e6255baad97a118a1c1338..05a72fbe559615ab1a84fd5926e816cea590df09 100644 (file)
@@ -720,6 +720,14 @@ gfx::ImageSkia NativeWindowViews::GetDevToolsWindowIcon() {
   return GetWindowAppIcon();
 }
 
+#if defined(USE_X11)
+void NativeWindowViews::GetDevToolsWindowWMClass(
+    std::string* name, std::string* class_name) {
+  *class_name = Browser::Get()->GetName();
+  *name = base::StringToLowerASCII(*class_name);
+}
+#endif
+
 void NativeWindowViews::HandleMouseDown() {
   // Hide menu bar when web view is clicked.
   if (menu_bar_autohide_ && menu_bar_visible_)
index fe7df269173a39b20ac56a619d81311d414e1e20..97baa2a4630b7b1191d72c55fabada64a4184175 100644 (file)
@@ -113,6 +113,10 @@ class NativeWindowViews : public NativeWindow,
 
   // brightray::InspectableWebContentsDelegate:
   gfx::ImageSkia GetDevToolsWindowIcon() override;
+#if defined(USE_X11)
+  void GetDevToolsWindowWMClass(
+      std::string* name, std::string* class_name) override;
+#endif
 
   // content::WebContentsDelegate:
   void HandleMouseDown() override;
index ddfebd06326a956145dfde6ed5f863396953da6d..313defa8a49c45250014e7c4ec2275d50dfd490d 160000 (submodule)
@@ -1 +1 @@
-Subproject commit ddfebd06326a956145dfde6ed5f863396953da6d
+Subproject commit 313defa8a49c45250014e7c4ec2275d50dfd490d