Repository navigation
fix: do not use CONTEXT_MENU flag for tray menu (reland) - #24097
Conversation
| break; | ||
| case Widget::InitParams::TYPE_MENU: | ||
| *style |= WS_POPUP; | ||
| + *ex_style |= WS_EX_TOOLWINDOW; |
There was a problem hiding this comment.
Is this safe, this looks like a well traversed function
There was a problem hiding this comment.
This function is executed when calculating the styles of windows, so it is the correct place to add a style for a type of window.
My only concern is whether this would cause other side effects (I believe it won't according to the docs of this style), we will know once the patch gets reviewed in Chromium.
@zcbenz as long as the exercised code path is same, you can create an issue with |
ddf24c1 to
808ee77
Compare
|
Patch has been submitted to upstream: https://chromium-review.googlesource.com/c/chromium/src/+/2245941. |
|
The added patch has been approved in upstream. |
|
@zcbenz can you update the patch to match upstream CL ? |
808ee77 to
9e1a1d2
Compare
9e1a1d2 to
7c13bbd
Compare
|
Failing test is unrelated, merging. |
|
Release Notes Persisted
|
|
I was unable to backport this PR to "8-x-y" cleanly; |
|
I was unable to backport this PR to "7-3-x" cleanly; |
|
I have automatically backported this PR to "10-x-y", please check out #24192 |
|
I have automatically backported this PR to "9-x-y", please check out #24193 |
Close #11587, close #24049.
Relands #23843 with a fix for #24049.
By adding the
WS_EX_TOOLWINDOWstyle, the menu window would no longer show in taskbar.I'll file a bug and submit the patch to Chromium next week, I haven't figured out how to make Chrome browser show a status icon.
Notes: Fix tray menu showing in taskbar on Windows.