linux: Set WM_CLASS for devtools window
This commit is contained in:
parent
172c55d194
commit
cd5007cfa1
3 changed files with 13 additions and 1 deletions
|
@ -720,6 +720,14 @@ gfx::ImageSkia NativeWindowViews::GetDevToolsWindowIcon() {
|
||||||
return GetWindowAppIcon();
|
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() {
|
void NativeWindowViews::HandleMouseDown() {
|
||||||
// Hide menu bar when web view is clicked.
|
// Hide menu bar when web view is clicked.
|
||||||
if (menu_bar_autohide_ && menu_bar_visible_)
|
if (menu_bar_autohide_ && menu_bar_visible_)
|
||||||
|
|
|
@ -113,6 +113,10 @@ class NativeWindowViews : public NativeWindow,
|
||||||
|
|
||||||
// brightray::InspectableWebContentsDelegate:
|
// brightray::InspectableWebContentsDelegate:
|
||||||
gfx::ImageSkia GetDevToolsWindowIcon() override;
|
gfx::ImageSkia GetDevToolsWindowIcon() override;
|
||||||
|
#if defined(USE_X11)
|
||||||
|
void GetDevToolsWindowWMClass(
|
||||||
|
std::string* name, std::string* class_name) override;
|
||||||
|
#endif
|
||||||
|
|
||||||
// content::WebContentsDelegate:
|
// content::WebContentsDelegate:
|
||||||
void HandleMouseDown() override;
|
void HandleMouseDown() override;
|
||||||
|
|
2
vendor/brightray
vendored
2
vendor/brightray
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit ddfebd06326a956145dfde6ed5f863396953da6d
|
Subproject commit 313defa8a49c45250014e7c4ec2275d50dfd490d
|
Loading…
Reference in a new issue