Wayland: fix creation of toplevel Fl_Gl_Window

This commit is contained in:
ManoloFLTK
2026-03-28 07:25:34 +01:00
parent a692c91524
commit 578b91d490
@@ -289,9 +289,6 @@ void Fl_Wayland_Gl_Window_Driver::make_current_before() {
// Tested apps: shape, glpuzzle, cube, fractals, gl_overlay, fullscreen, unittests,
// OpenGL3-glut-test, OpenGL3test.
// Tested wayland compositors: mutter, kde-plasma, weston, sway on FreeBSD.
if (!pWindow->parent()) { // force toplevel GL win to enter its display
while (wl_list_empty(&win->outputs)) wl_display_dispatch(fl_wl_display());
}
}
}