fix: persist maximizable state through theme change (#22677)

This commit is contained in:
Shelley Vohr 2020-03-17 10:58:57 -07:00 committed by GitHub
parent 9583f7dabb
commit f4868c9a28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 14 deletions

View file

@ -151,7 +151,7 @@ class NativeWindowMac : public NativeWindow, public ui::NativeThemeObserver {
void SetWindowLevel(int level);
// Custom traffic light positioning
void RepositionTrafficLights();
void RedrawTrafficLights();
void SetExitingFullScreen(bool flag);
void SetTrafficLightPosition(const gfx::Point& position) override;
gfx::Point GetTrafficLightPosition() const override;
@ -222,6 +222,9 @@ class NativeWindowMac : public NativeWindow, public ui::NativeThemeObserver {
// setWindowButtonVisibility().
base::Optional<bool> window_button_visibility_;
// Maximizable window state; necessary for persistence through redraws.
bool maximizable_ = true;
// Simple (pre-Lion) Fullscreen Settings
bool always_simple_fullscreen_ = false;
bool is_simple_fullscreen_ = false;