mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: do not use CONTEXT_MENU flag for tray menu (reland) (#24097)
* fix: do not use CONTEXT_MENU flag for tray menu * fix: menu window should not appear in taskbar
This commit is contained in:
@@ -101,3 +101,4 @@ fix_swap_global_proxies_before_initializing_the_windows_proxies.patch
|
||||
fix_default_to_ntlm_v2_in_network_service.patch
|
||||
feat_add_streaming-protocol_registry_to_multibuffer_data_source.patch
|
||||
fix_handling_non_client_pointer_events_from_pen_on_windows_10.patch
|
||||
remove_menu_window_task_item.patch
|
||||
|
||||
20
patches/chromium/remove_menu_window_task_item.patch
Normal file
20
patches/chromium/remove_menu_window_task_item.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
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..89f5b62f95dfec59bacf79f33895438039fac1c5 100644
|
||||
--- a/ui/views/widget/widget_hwnd_utils.cc
|
||||
+++ b/ui/views/widget/widget_hwnd_utils.cc
|
||||
@@ -118,6 +118,8 @@ void CalculateWindowStylesFromInitParams(
|
||||
else
|
||||
*style |= WS_BORDER;
|
||||
}
|
||||
+ if (!params.force_show_in_taskbar)
|
||||
+ *ex_style |= WS_EX_TOOLWINDOW;
|
||||
break;
|
||||
case Widget::InitParams::TYPE_TOOLTIP:
|
||||
*style |= WS_POPUP;
|
||||
Reference in New Issue
Block a user