diff options
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index 5cba87436..dd7761df9 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -1734,6 +1734,9 @@ void Fl_Wayland_Window_Driver::fullscreen_on() { void Fl_Wayland_Window_Driver::fullscreen_off(int X, int Y, int W, int H) { pWindow->hide(); pWindow->_clear_fullscreen(); + // avoid being called with W=H=0 in suboptimal scenario of #1299 + if (!W) W = w(); + if (!H) H = h(); pWindow->resize(X, Y, W, H); pWindow->show(); Fl::handle(FL_FULLSCREEN, pWindow); |
