Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: menu window should not appear in taskbar
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Cheng Zhao <zcbenz@gmail.com> | ||
Date: Thu, 4 Oct 2018 14:57:02 -0700 | ||
Subject: fix: remove menu window from taskbar | ||
|
||
Refs https://chromium-review.googlesource.com/c/chromium/src/+/2245941 | ||
|
||
diff --git a/ui/views/widget/widget_hwnd_utils.cc b/ui/views/widget/widget_hwnd_utils.cc | ||
index 40e66a212e3ea158b61f11d804a3c1644023b2d7..d3cdffc67216efa81f1c7394ee653a1d66207bd2 100644 | ||
--- a/ui/views/widget/widget_hwnd_utils.cc | ||
+++ b/ui/views/widget/widget_hwnd_utils.cc | ||
@@ -109,6 +109,7 @@ void CalculateWindowStylesFromInitParams( | ||
break; | ||
case Widget::InitParams::TYPE_MENU: | ||
*style |= WS_POPUP; | ||
+ *ex_style |= WS_EX_TOOLWINDOW; | ||
if (::features::IsFormControlsRefreshEnabled() && | ||
params.remove_standard_frame) { | ||
// If the platform doesn't support drop shadow, decorate the Window |