summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNik Pavlov <npavlov@spotify.com>2023-03-08 16:58:21 +0000
committerMarshall Greenblatt <magreenblatt@gmail.com>2023-03-08 12:57:04 -0500
commit870da3087fcf5152387d8943f3458c0e09003f77 (patch)
tree1319c8271be3b73e51a29a79f00171ab17cf1207
parentf6de0344cb7fec531d5dd1b8dc8e5a08c776958f (diff)
downloadcef-870da3087fcf5152387d8943f3458c0e09003f77.tar.gz
views: mac: Show standard window buttons with frame by default (see issue #3189)
This restores the previous default behavior for framed windows.
-rw-r--r--include/views/cef_window_delegate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/views/cef_window_delegate.h b/include/views/cef_window_delegate.h
index e9a1b528..90bc7dfb 100644
--- a/include/views/cef_window_delegate.h
+++ b/include/views/cef_window_delegate.h
@@ -134,7 +134,7 @@ class CefWindowDelegate : public CefPanelDelegate {
///
/*--cef()--*/
virtual bool WithStandardWindowButtons(CefRefPtr<CefWindow> window) {
- return false;
+ return !IsFrameless(window);
}
///