punesemu / puNES

Qt-based Nintendo Entertaiment System emulator and NSF/NSF2/NSFe Music Player (Linux, FreeBSD, OpenBSD and Windows)
GNU General Public License v2.0
597 stars 40 forks source link

Fullscreen doesn't work on Wayland #401

Open Lutzx opened 2 months ago

Lutzx commented 2 months ago

I installed the latest puNES from Flatpak and fullscreen doesn't work, the window just gets maximised. I use Debian Sid with KDE Wayland. Then I tested the AppImage and it also doesn't work, although it behaves differently. There is no title bar and the bottom bar seems to be behind the DE task bar. I have a laptop with the same Linux distribution but with GNOME instead and the Flatpak behaves the same way as on KDE (didn't test the AppImage). On KDE X11 it works!

KDE Flatpak: KDE-Flatpak

KDE AppImage: KDE-AppImage

GNOME Flatpak: GNOME-Flatpak

puNES: 0.111 (Flatpak and AppImage) OS: Debian Sid Kernel: 6.7.12

Desktop DE: KDE Plasma 5.27.10 CPU: AMD Ryzen 7 3700X GPU: AMD Radeon RX 6700 XT

Laptop DE: GNOME 45.3 CPU: AMD Ryzen 7 5800H GPU: NVIDIA GeForce RTX 3050 Ti Mobile

Hacky workaround: I found a workaround for the flatpak using Valve's gamescope. At the moment, gamescope doesn't support wayland applications so we need to disable the wayland socket: flatpak override --user io.github.punesemu.puNES --nosocket=wayland

Then you can run puNES with gamescope. For a 1080p screen it would be: gamescope -W 1920 -H 1080 -f -- flatpak run io.github.punesemu.puNES --fullscreen yes

punesemu commented 2 months ago

Hi @Lutzx, thx for your report. The emulator uses QTs to launch fullscreen which doesn't allow it under Wayland (or at least didn't allow it last time I checked). For now with wayland only "fullscreen in window" is allowed and if you double click on the menu bar you can/hide show the upper and lower toolbar.