Wayland possible?

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Post Reply
Message
Author
Ophiuchus
Programmer
Posts: 3427
Joined: Tue Sep 30, 2014 10:01 am
Location: Wall IV

Wayland possible?

#1 Post by Ophiuchus »

Hey, is it possible to run freeorion directly with wayland or is there anything which needs to be changed in the compile?

I want to switch the snap to wayland because freeorion does not need to talk to other x11 windows running on the same machine. If i install a game via snap i rather prefer the isolation wayland offers than having to trust the game publisher completely.
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

Look, ma... four combat bouts!

o01eg
Programmer
Posts: 1998
Joined: Sat Dec 10, 2011 5:46 am

Re: Wayland possible?

#2 Post by o01eg »

I don't use Wayland but I suppose it's a SDL library responsibility.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-01-30.0dd6806.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: Wayland possible?

#3 Post by adrian_broher »

FreeOrion doesn't use X11 or Wayland or any other windowing API directly. That interaction is handled by SDL, so if you want to run FreeOrion you have to configure SDL to use the Wayland backend (that may or may not involve recompiling SDL depending on how the distribution has configured it).
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

Post Reply