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:
parent
c2a4e2ca5c
commit
622c1f1db8
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user