Skip to content

Commit 5f635a6

Browse files
authored
Merge pull request #3831 from cmitu/gnoe-fullscreen
emulationstation: fix fullscreen launching params on Wayland/Gnome
2 parents 3f2c8c6 + d74eb0f commit 5f635a6

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)