Closed shmerl closed 5 months ago
well, I think this is the bug tracker you´re looking for: https://github.com/libsdl-org/SDL
Is this an SDL dialog though? I thought it's something triggered by freerdp itself. If it's SDL one, I can report it there.
I.e. if you point out in the code where it's being used, I can report it to SDL as not honoring the env variable value.
Looks like something here?
https://github.com/FreeRDP/FreeRDP/blob/master/client/SDL/dialogs/sdl_dialogs.cpp#L330
Not really an expert on SDL. What exact function do think is not behaving correctly?
Not really sure, but it looks like event type is set to SDL_USEREVENT_CERT_DIALOG
.
Is it some kind of custom event? How does SDL know to open a dialog in this case?
OK, I think I got somewhere, it's plugging into SDL_ShowMessageBox
:
https://github.com/FreeRDP/FreeRDP/blob/master/client/SDL/dialogs/sdl_dialogs.cpp#L484
I suppose I can file a bug report for SDL that SDL_ShowMessageBox
isn't honoring their video driver setting.
Hmm, at least according to their documentation, it's hinted it's not limited to X11:
https://wiki.libsdl.org/SDL2/SDL_ShowMessageBox
On X11, SDL rolls its own dialog box with X11 primitives instead of a formal toolkit like GTK+ or Qt.
But I'm not doing it on X11 and I set SDL_VIDEODRIVER='wayland'
, so something sounds off.
Opened SDL bug above.
@shmerl we´re doing custom dialogs (e.g. sdl windows with sdl-ttf to draw some text and sdl-image to show our logo) for user credential input and, as you already found out, SDL_ShowMessageBox
for simpler dialogs with only text and no input.
nothing platform specific with these dialogs.
Yeah, your custom dialogs actually work fine showing Wayland windows. But that one specifically is for some reason X11 one. Let's see what SDL developers have to say.
SDL developers fixed it both in SDL 3 and SDL 2. It should come out in 2.30.x.
I'm testing sdl-freerdp3 (nightly build for Debian testing). See build info below.
When connecting forcing the Wayland mode (
SDL_VIDEODRIVER='wayland'
) it's still sometimes using X11 windows, like when displaying the window about accepting new X.509 certificate.It would be good if it all used Wayland in such case.
Thanks!