@ManoloFLTK Here are my comments to your last message:
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.
My belief is that wait_for_expose() is needed as when sending the window fullscreen() under some compositors like GNOME, they create an "animation" of the window resizing. wait_for_expose(), in my hands, pauses FLTK until the window is fully fullscreen.
The behavior does not happen on neither Windows nor macOS, where indeed wait_for_expose() is useless.
In my hands, the test program blocks also with no call to wait_for_expose(). For this reason, ClaudeAI's fix is not relevant.
I 100% disagree on this. When wait_for_expose() is removed, there's no blocking with 1.5 GH.
With ClaudeAI's correction (I can make it a patch if you need) AND wait_for_expose(), there's also no blocking.
When a decorated window is made fullscreen, its decoration disappears. No need to call border(0) (and border(1) when calling fullscreen_off()).
You are indeed correct on this. My fault.
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.
You should not remove these ones. While I won't call me a GL "expert", the swap_interval() functions should be kept. You can ask @MatthiasWM since he also knows GL very well and he was the one that added the swap_interval functions.
My understanding is this:
OpenGL when drawing with swap_interval(0) tries to flip between the front and back buffers as fast as possible. However, that is subject to "tearing" in the scene. OpenGL, in theory, but usually not in practice, support having multiple buffers (that's why swap_interval() is an int).
Under Vulkan, the same behavior can happen, albeit the terms there are "Immediate" (which basically no driver supports) and "Mailbox" or "FIFO" (both which are widely supported). How many buffers are kept are up to the Vulkan setup, in which the swapchain is created.
One thing that ClaudeAI taught me was that OpenGL and Vulkan differ on their swap_interval() approach. While OpenGL can have different windows with different swap_interval() settings, Vulkan, on the other hand must have all windows using the same method (ie. MBOX, FIFO, etc).
We are left with the problem of having 3 continuously changing GL scenes, with one hiding the other 2 when it's turned fullscreen...
I don't agree to that long paragraph either as ClaudeAI's patch fixes it in my hand.
uiSecondaryView->take_focus(); // this is also probaby un-necessary
No, you are wrong. It is needed to re-route the toggle functionality of the F12 key, which is handled and resent to the menubar in the shape_window::handle() method.
— 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/5999261379@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'.