Repository navigation
Replies: 1 comment
|
Well done! 👏 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello.
I am very happy to announce that msegui has now 2 new targets: SDL2 and SDL3.
My friend Claude helped a lot
You may test via the https://github.com/mse-org/mseide-msegui/tree/sdl2 branch.
On linux. using sdl2 or sdl3 will create a hybrid executable that can run on pure X11 graphic server and on pure wayland server.
On Mac a native mac app.
It works also for Windows but I did not test yet.
in case you want to test it:
for windows:
https://github.com/libsdl-org/SDL/releases
For Debian
for Fedora
for manjaro
Then swith to mseide-msegui sdl2 branch (it has also the sdl3 code):
in mseide-msegui dir:
$ git checkout sdl2In your project make parameter add one of this parameter:
-dusesdl2 if you want to compile for sdl2
-dusesdl3 if you want to compile for sdl3
Crosss your finger and compile.
Note that only sdl3 can place the submenu on right place on pure wayland or weston session.
Here what Claude did:
DL2 backend (done), about 6–10 Nov 2026
Drawing items finished: tpolygon, ellipse, arcs, dotted focus frame, icon transparency (screenshots from 7–9 Nov).
Mouse wheel fixed, and the font cache leak fixed in lib/common/graphics/msefontcache.pas (tfontcache.freefontdata).
SDL2 on Wayland presents through a window renderer (gdi_endpaint).
Limit: SDL2 cannot place popups on native Wayland, so use XWayland (SDL_VIDEODRIVER=x11).
Build architecture, 11 Nov 2026
One define per build, -dusesdl2 or -dusesdl3, with lib/common/kernel/sdl/msesdl.inc deriving usesdl.
sdl4msegui.pas renamed to sdl2msegui.pas; SDL3 headers copied flat into lib/common/kernel/sdl/.
New shim layer sdl3api.pas and sdl3msegui.pas.
SDL3 backend, 11 Nov to 12 Nov 2026
11 Nov (evening): the demo draws, resizes and closes on X11, then on native Wayland. Eschecs runs on X11 and weston. Fixes: black window (flush after draw calls), 100x100 form (synthetic RESIZED after SHOWN), blurry window (recreate the window surface), event loop spin, semaphore types.
11 Nov to 12 Nov (night): submenus become real xdg_popup windows (SDL_CreatePopupWindow), placed correctly.
12 Nov, about 01:00–04:15: the remaining bug, “submenu black until the mouse moves”.
Tried and ruled out: extra expose events, alpha blending, renderer presenting.
Found the real causes: the popup was mapped at 50x50 and resized afterwards (fixed by creating it hidden and showing it once the size is set), and the expose rectangle contained the screen position (fixed in gui_getevent_raw in mseguiintf.pas: origin 0,0).
Result: submenus appear immediately with decorations, tested on weston.
Current setting: popupexposecount = 1 (0 puts menus about 30 pixels too low).
Screenshots of msegui apps compiled using sdl3 running on weston session:
All reactions