Wayland possible?

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

Moderators: Committer, Committer

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

Wayland possible?

#1 Post by Ophiuchus » Wed Mar 04, 2020 1:41 pm

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.

Furthermore, I propse... we should default to four combat rounds instead of three ...for the good of playerkind.

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

Re: Wayland possible?

#2 Post by o01eg » Wed Mar 04, 2020 1:44 pm

I don't use Wayland but I suppose it's a SDL library responsibility.
Gentoo Linux x64, gcc-9.2, boost-1.72.0
Ubuntu Server 18.04 x64, gcc-7.4, boost-1.65.1
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io. Version 2020-03-30.025f545.
Donations are welcome: BTC:14XLekD9ifwqLtZX4iteepvbLQNYVG87zK

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

Re: Wayland possible?

#3 Post by adrian_broher » Wed Mar 04, 2020 4:42 pm

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