[raiguard][1.1.77] Wayland missing window decorations
[raiguard][1.1.77] Wayland missing window decorations
I tried using the new SDL_VIDEODRIVER=wayland setting and it's missing all window decorations - there is no title bar, the window cannot be moved or resized.
- Attachments
-
- default.jpg (663.95 KiB) Viewed 5057 times
-
- wayland.jpg (611.21 KiB) Viewed 5057 times
-
- factorio-default.log
- (4.53 KiB) Downloaded 96 times
-
- factorio-wayland.log
- Running with SDL_VIDEODRIVER=wayland
- (4.53 KiB) Downloaded 88 times
Re: [1.1.77] Wayland missing window decorations
I have that, too, but I thought, I screwed something up with my Gnome.
But maybe, it's something different.
I switched back to XFCE on X11, because it running ok-ish still.
But maybe, it's something different.
I switched back to XFCE on X11, because it running ok-ish still.
Re: [raiguard][1.1.77] Wayland missing window decorations
Thanks for the report. It looks like Gnome doesn't support server-side window decorations on Wayland. This means that we'll have to provide our own. In the meantime, you can drag the window with super+drag, and super+right click to access the various titlebar options and resizing.
Don't forget, you're here forever.
Re: [raiguard][1.1.77] Wayland missing window decorations
A quick update on this: I found a solution several months ago by adding libdecor to the build process, but while it works fine on our CI servers, we are unable to compile libdecor on our production build server for various reasons. I am working on some alternative solutions but it's slow going. In any case, this likely won't be fixed in 1.1 because it will require changes to the release process.
Don't forget, you're here forever.
Re: [raiguard][1.1.77] Wayland missing window decorations
Thanks for the update!
Re: [raiguard][1.1.77] Wayland missing window decorations
I revisited this and figured out a way to make it work. I mistakenly thought that our build servers needed to have the libdecor dynamic library linked to the program but that is not the case - SDL optionally loads it at runtime. So I just needed to make the libdecor header available
Fixed for the next release!
Fixed for the next release!
Don't forget, you're here forever.
Re: [raiguard][1.1.77] Wayland missing window decorations
Thanks for fixing this!
The window decorations are now present, and I can resize and maximize the window, even though they look different than the rest of the windows. I'm perfectly OK with this, just wanted to leave a note about this. I don't know if that's related to this, but sometimes (on 1.1.105), if I move the window around during initial loading and/or click on the window and/or titlebar the game just closes right after it's finished loading, as if it was buffering input and that was causing some problems. I attach a log file from running the game withbut there is nothing interesting in it as far as I can tell. This only happens when running under Wayland as far as I can tell, or at least didn't easily reproduce with default settings.
There's also a problem that switching from a maximized Factorio Wayland window to another app (on second monitor) causes the maximized Factorio window to resize, I'll report that separately. 111995
The window decorations are now present, and I can resize and maximize the window, even though they look different than the rest of the windows. I'm perfectly OK with this, just wanted to leave a note about this. I don't know if that's related to this, but sometimes (on 1.1.105), if I move the window around during initial loading and/or click on the window and/or titlebar the game just closes right after it's finished loading, as if it was buffering input and that was causing some problems. I attach a log file from running the game with
Code: Select all
SDL_VIDEODRIVER=wayland ./bin/x64/factorio
There's also a problem that switching from a maximized Factorio Wayland window to another app (on second monitor) causes the maximized Factorio window to resize, I'll report that separately. 111995
- Attachments
-
- factorio-current.log
- Game closes immediately after initial loading is finished.
- (6.83 KiB) Downloaded 58 times
Re: [raiguard][1.1.77] Wayland missing window decorations
Sounds like https://gitlab.freedesktop.org/wayland/ ... quests/188 (with fix presumably to be merged soon)
Re: [raiguard][1.1.77] Wayland missing window decorations
Yes, and here's a Factorio thread about this issue: 105527.atomizer wrote: ↑Mon Mar 25, 2024 6:24 pm Sounds like https://gitlab.freedesktop.org/wayland/ ... quests/188 (with fix presumably to be merged soon)
Don't forget, you're here forever.
Re: [raiguard][1.1.77] Wayland missing window decorations
On my system the decorations are GTK4 themed but always use the light theme. There is an open ticket in libdecor to fix this.
If Gnome would get off their high horse and implement effing server-side decorations like literally everyone else then we wouldn't have to deal with this garbage.
Don't forget, you're here forever.