News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

[Linux Wayland] Window borders not appearing on GNOME desktop

Started by Yona-TYT, June 22, 2025, 03:41:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT

Using: Fedora Linux 43 (Rawhide Prerelease) GNOME 48 in Wayland
Currently, Simutras runs directly on Wayland (not XWayland).

This issue with the Simutras window has been present for a while. It's related to the move to Wayland on GTK desktops. I've been using QT desktops, so I hadn't noticed this still exists on GNOME.
Captura desde 2025-06-22 11-35-16.png

Roboron

Could you check if this happens with other SDL apps? (OpenTTD maybe?).

Yona-TYT

Quote from: Roboron on June 22, 2025, 08:16:23 PMCould you check if this happens with other SDL apps? (OpenTTD maybe?).
I tried running openttd , but it doesn't work natively on wayland, I tried using "openttd SDL_VIDEODRIVER=wayland" but this didn't work for me.
I tried wesnoth, and it does work natively on Wayland, and the borders/window decorations work correctly. However, wesnoth uses "SDL2_mixer".
Captura desde 2025-06-24 01-24-22.png

prissi

It could be that this is an issue with SDL3 (which just uses a wrapper to SDL2 to compile on some Linuxes). Is it steam or the nightly? SLD2_mixer is still old plain SDL2.

Yona-TYT

Quote from: prissi on June 24, 2025, 11:18:56 PMIt could be that this is an issue with SDL3 (which just uses a wrapper to SDL2 to compile on some Linuxes). Is it steam or the nightly? SLD2_mixer is still old plain SDL2.
This is one night..

prissi


Yona-TYT

Quote from: prissi on June 25, 2025, 11:53:52 AMMaybe try self-compile.

You're right, compiled Simutrans doesn't have any issues with window decorations.

However, I'm concerned that regular users might have this problem when running Simutrans, most don't even know how to compile their own versions.

Captura desde 2025-06-25 09-20-10.png

prissi

Usually, Simutrans comes with the respective distributions ...

Which version of SDL did you compile with?

Roboron

Quote from: Yona-TYT on June 25, 2025, 01:20:24 PMHowever, I'm concerned that regular users might have this problem when running Simutrans, most don't even know how to compile their own versions.

Well, there is the reason I created the Simutrans flatpak.

ceeac

Quote from: Yona-TYT on June 22, 2025, 03:41:38 PMThis issue with the Simutras window has been present for a while. It's related to the move to Wayland on GTK desktops
This looks like the Fedora package depends on SDL2 without libdecor support. Do you have multiple versions of SDL2 installed? (Or maybe wesnoth statically links to the libdecor-enabled version?)

Yona-TYT

Quote from: prissi on Yesterday at 03:26:47 AMWhich version of SDL did you compile with?
In Fedora, it should be the "SDL2-devel" package, but in the version I'm using, when I search for it in the package manager, it appears as "sdl2-compat-devel-2.32.56-1.fc43.x86_64". I always compile using the libraries included in the official repositories


Quote from: ceeac on Yesterday at 05:36:11 PMThis looks like the Fedora package depends on SDL2 without libdecor support.
Is libdecor only for GTK windows? Or is it also used in QT? On the lxqt desktop, decorations work fine in Wayland.


Quote from: ceeac on Yesterday at 05:36:11 PMThis looks like the Fedora package depends on SDL2 without libdecor support. Do you have multiple versions of SDL2 installed? (Or maybe wesnoth statically links to the libdecor-enabled version?)
# rpm -qa | grep SDL
SDL_image-1.2.12-39.fc42.x86_64
SDL2_net-2.2.0-7.fc42.x86_64
SDL3-3.2.12-1.fc43.x86_64
SDL2_image-2.8.8-1.fc43.x86_64
mingw32-SDL3-3.2.12-1.fc43.noarch
mingw64-SDL3-3.2.12-1.fc43.noarch
SDL3-3.2.12-1.fc43.i686
SDL2_mixer-2.8.1-1.fc43.x86_64
Those are the ones that are in my system currently.


Dependencies: wesnoth-1.19.13-1.fc43 in Fedora Rawhide


These are the links and libraries I have, however I'm not sure which one is using Wesnoth and which one is using Simutrans:
Captura desde 2025-06-26 18-47-08.png

prissi

The compat-level SDL2 is actually an SDL3 ...