@ggarra13 Many thanks for providing a reproducing test program (main.cpp above). Here are my remarks about it .
I think the call to wait_for_expose() is not necessary because nothing is being displayed or programmed immediately after the window is set fullscreen. Only the fullscreen window is redrawn. In my hands, the test program blocks also with no call to wait_for_expose(). For this reason, ClaudeAI's fix is not relevant.
When a decorated window is made fullscreen, its decoration disappears. No need to call border(0) (and border(1) when calling fullscreen_off()).
I'm no expert about GL, but I would believe the calls to swap_interval(0) and swap_interval(1) are useless because GL under Wayland anyway stops redrawing any GL surface hidden by some other surface.
We are left with the problem of having 3 continuously changing GL scenes, with one hiding the other 2 when it's turned fullscreen, and of preventing any GL update call from blocking. Unfortunately, my conclusion after much attempts is that Wayland+EGL+GL doesn't allow to guarantee this completely, because FLTK (or any other software, really) has no access to the throttling operations performed internally to the EGL library. My conclusion is that the user of EGL+Wayland has no other choice than hiding GL scenes known to be obscured by a window when it's turned fullscreen, and to show them back when the fullscreen window is unset. Overall, this is the modified version of function fs_cb() that removes all blocking from the test program and that works across platforms :
voidfs_cb(void* d)
{
if (uiSecondary->fullscreen_active())
{
uiSecondary->fullscreen_off();
uiView->show();
uiTimeline->show();
}
else
{
if (uiView->screen_num() == uiSecondary->screen_num()) uiView->hide();
if (uiTimeline->screen_num() == uiSecondary->screen_num()) uiTimeline->hide();
uiSecondary->fullscreen();
}
uiSecondaryView->take_focus(); // this is also probaby un-necessary
}
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/1620/5998378001@github.com>
Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.