summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index facd462b0..4a617ff44 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -1718,9 +1718,10 @@ void Fl_Wayland_Window_Driver::fullscreen_on() {
void Fl_Wayland_Window_Driver::fullscreen_off(int X, int Y, int W, int H) {
- if (!border()) pWindow->resize(X, Y, W, H);
- xdg_toplevel_unset_fullscreen(xdg_toplevel());
+ pWindow->hide();
pWindow->_clear_fullscreen();
+ pWindow->resize(X, Y, W, H);
+ pWindow->show();
Fl::handle(FL_FULLSCREEN, pWindow);
}