mirror of
https://github.com/fltk/fltk.git
synced 2026-05-09 21:06:51 +08:00
Wayland: fix creation of toplevel Fl_Gl_Window
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user