Skip to content

Commit

Permalink
Still call SetFrameChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 committed Aug 19, 2022
1 parent 640313c commit fb563c7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions patches/chromium/fix_remove_caption-removing_style_call.patch
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,17 @@ or resizing, but Electron does not seem to run into that issue
for frameless windows even with that block commented out.

diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
index 1f883dc7d46d5cc3fddffe75c55e6b96fb0fc5f2..e0a6a720ecdf0ee0e0b85a17a20de24be362a268 100644
index 1f883dc7d46d5cc3fddffe75c55e6b96fb0fc5f2..7a7403e2129baf228474971dcb8a565ae6a0f683 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -1726,11 +1726,13 @@ LRESULT HWNDMessageHandler::OnCreate(CREATESTRUCT* create_struct) {
SendMessage(hwnd(), WM_CHANGEUISTATE, MAKELPARAM(UIS_CLEAR, UISF_HIDEFOCUS),
@@ -1727,8 +1727,10 @@ LRESULT HWNDMessageHandler::OnCreate(CREATESTRUCT* create_struct) {
0);

+#if 0
if (!delegate_->HasFrame()) {
+#if 0
SetWindowLong(hwnd(), GWL_STYLE,
GetWindowLong(hwnd(), GWL_STYLE) & ~WS_CAPTION);
+#endif
SendFrameChanged();
}
+#endif

// Get access to a modifiable copy of the system menu.
GetSystemMenu(hwnd(), false);

0 comments on commit fb563c7

Please sign in to comment.