Skip to content

Commit

Permalink
Use if 0 instead of deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 committed Aug 18, 2022
1 parent e908033 commit ec51e87
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions patches/chromium/fix_remove_caption-removing_style_call.patch
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,20 @@ 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 c6810f162806b36494885b2f63982a756d4dcd38..92d030a3d24a7bb282f698a5591cf33ae14e06ed 100644
index 1f883dc7d46d5cc3fddffe75c55e6b96fb0fc5f2..e0a6a720ecdf0ee0e0b85a17a20de24be362a268 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -1723,12 +1723,6 @@ LRESULT HWNDMessageHandler::OnCreate(CREATESTRUCT* create_struct) {
@@ -1726,11 +1726,13 @@ LRESULT HWNDMessageHandler::OnCreate(CREATESTRUCT* create_struct) {
SendMessage(hwnd(), WM_CHANGEUISTATE, MAKELPARAM(UIS_CLEAR, UISF_HIDEFOCUS),
0);

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

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

0 comments on commit ec51e87

Please sign in to comment.