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.
This commit is contained in:
ManoloFLTK 2025-03-18 18:09:23 +01:00
parent c2a4e2ca5c
commit 622c1f1db8

View File

@ -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);
}