summaryrefslogtreecommitdiff
path: root/src/Fl_Window_fullscreen.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-03 17:50:49 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-03 17:50:49 +0100
commit130f5b6dc1c2258b1a05c9319d796b96dc2d4f7e (patch)
tree41d40ad5e87e2ffb207482dac00ec50310bc6263 /src/Fl_Window_fullscreen.cxx
parentd832ab742a9247b928c530a91d195410b17387b4 (diff)
A window needs is_resizable() true to obey fullscreen() or maximize()
Diffstat (limited to 'src/Fl_Window_fullscreen.cxx')
-rw-r--r--src/Fl_Window_fullscreen.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_Window_fullscreen.cxx b/src/Fl_Window_fullscreen.cxx
index ab9e6c6bb..f6919f87c 100644
--- a/src/Fl_Window_fullscreen.cxx
+++ b/src/Fl_Window_fullscreen.cxx
@@ -36,6 +36,7 @@ void Fl_Window::border(int b) {
borders should not be *visible*.
*/
void Fl_Window::fullscreen() {
+ if (!is_resizable()) return;
no_fullscreen_x = x();
no_fullscreen_y = y();
no_fullscreen_w = w();