Improve member function Fl_Wayland_Gl_Window_Driver::make_current_before()
This commit is contained in:
parent
0f3b5ded8f
commit
2ee688dae9
@ -303,9 +303,8 @@ 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.
|
||||
wl_display_roundtrip(fl_wl_display());
|
||||
wl_display_roundtrip(fl_wl_display());
|
||||
wl_display_roundtrip(fl_wl_display()); // necessary for gl_overlay
|
||||
if (pWindow->parent()) win = fl_wl_xid(pWindow->top_window());
|
||||
while (!win->xdg_surface) wl_display_roundtrip(fl_wl_display());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user