summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-03-18 18:09:23 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-03-18 18:09:23 +0100
commit622c1f1db8d7dbee2b12f1f9ca54bdd0226d650a (patch)
treea82fcb81d35668fd64af5b0e84c4819203d0fd04 /src/drivers
parentc2a4e2ca5cd8a1b47240390affd43a85d51bef64 (diff)
Wayland: fix unsetting fullscreen state for window created fullscreen
In some multi-screen settings, the un-fullscreened window would leave its screen but would not enter any screen.
Diffstat (limited to 'src/drivers')
-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);
}