Skip to content

Commit d74eb0f

Browse files
committed
emulationstation: fix fullscreen launching params on Wayland/Gnome
When running under Gnome/Wayland on Ubuntu 22.04 default configuration, the '--fullscreen-borderless' is not actually fullscreen. The top horizontal panel (?) is still visible and the EmulationStation window is actually pushed down. Running with just '--fullscreen' is enough, but this is the default, thus there's no need to add any additional parameters when Gnome/Wayland is the current session. Tested on an updated Ubuntu 22.04, with the default Gnome session.
1 parent 6eab997 commit d74eb0f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scriptmodules/supplementary/emulationstation.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,10 @@ if [[ \$(id -u) -eq 0 ]]; then
249249
exit 1
250250
fi
251251
252-
# use SDL2 wayland video driver if wayland session is detected.
253-
# Emulationstation has focus problems under Ubuntu 22.04's GNOME on Wayland session. Don't use SDL2's wayland driver and run
254-
# emulationstation with --fullscreen-borderless if desktop session is GNOME on Wayland.
252+
# use SDL2 wayland video driver if wayland session is detected, but...
253+
# Emulationstation has focus problems under Ubuntu 22.04's GNOME on Wayland session, so don't use the SDL2's Wayland driver in that combination
255254
if [[ "\$WAYLAND_DISPLAY" == wayland* ]]; then
256-
[[ "\$XDG_CURRENT_DESKTOP" == *GNOME ]] && set -- "\$@" "--fullscreen-borderless" || export SDL_VIDEODRIVER=wayland
255+
[[ "\$XDG_CURRENT_DESKTOP" == *GNOME ]] || export SDL_VIDEODRIVER=wayland
257256
fi
258257
259258
# save current tty/vt number for use with X so it can be launched on the correct tty

0 commit comments

Comments
 (0)