diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-16 18:38:42 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-16 18:38:42 +0200 |
commit | d92e26d0234a0719ed76dc14325998d5ed797b38 (patch) | |
tree | ec939f0d8252f9c16062cc5f72bb8ac807eead03 /Libraries/LibGUI/GWindow.h | |
parent | a34f3a372900caebc308ec23691f6bfcad6d7a6e (diff) | |
download | serenity-d92e26d0234a0719ed76dc14325998d5ed797b38.zip |
WindowServer+LibGUI: Allow switching windows in/out of fullscreen mode
You can now call GWindow::set_fullscreen(bool) and it will go in or out
of fullscreen mode.
WindowServer will also remember the previous window rect when switching
to fullscreen, and restore it when switching back. :^)
Diffstat (limited to 'Libraries/LibGUI/GWindow.h')
-rw-r--r-- | Libraries/LibGUI/GWindow.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/GWindow.h b/Libraries/LibGUI/GWindow.h index e563cb1322..7591a66ad8 100644 --- a/Libraries/LibGUI/GWindow.h +++ b/Libraries/LibGUI/GWindow.h @@ -33,7 +33,7 @@ public: void set_modal(bool); bool is_fullscreen() const { return m_fullscreen; } - void set_fullscreen(bool fullscreen) { m_fullscreen = fullscreen; } + void set_fullscreen(bool); bool is_resizable() const { return m_resizable; } void set_resizable(bool resizable) { m_resizable = resizable; } |