09:04wlb: weston Issue #977 opened by () WL_TOUCH_UP and WL_TOUCH_DOWN number do not match https://gitlab.freedesktop.org/wayland/weston/-/issues/977
14:57__monty__: Do I understand correctly that a Qt application with the XCB platform plugin should automatically run under XWayland if launched on a Wayland system?
14:58ofourdan: Yes. xcb means X11, and X11 means Xwayland on a Wayland session.
15:01__monty__: Hmm, might Flatpak interfere with the program being allowed to use XWayland? Or does Fedora maybe prevent the use of XWayland by default?
15:02Ermine: Before we get into XY problems, what's your original issue?
15:02psykose: flatpak can hide the x/wayland sockets per application yes
15:02psykose: you can use flatseal to see
15:05__monty__: I'm trying to package a proprietary application that is distributed as a .deb as a flatpak to run it easily on Fedora. And the flatpak seems to work on X11 systems but under Wayland it crashes with "couldn't connect to display".
15:07kennylevinsen: __monty__: "couldn't connect to display" sounds like it's trying to connect to X11 specifically and failing
15:07psykose: check the flatpak permissions in flatseal and it probably doesn't have the x11 socket exposed https://img.ayaya.dev/IOyA0UptX8TW
15:13__monty__: When specifying the permissions I included only fallback-x11 as that is apparently the modern recommendation.
15:14__monty__: Oh, and wayland. (And pulseaudio but that shouldn't affect the display manager, I hope?)
15:15kennylevinsen: fallback-x11 will only give access to x11 if you're on a legacy system *not* running Wayland
15:15kennylevinsen: so it requires the app itself to support and be set up to use Wayland
15:16kennylevinsen: you can try to mess with QT_QPA_PLATFORM, but if the app bundles its own version of Qt it will have to have been built with Wayland support
15:16kennylevinsen: otherwise you'll need to do as some other distro packages do and substitute the Qt version through some hacks
15:16__monty__: It does and it only comes with the XCB plugin. I looked into compiling the qwayland qpa but the sources for 6.5.1 don't build for me.
15:17kennylevinsen: (if you *purely* want the app to operate in X11 mode even on Wayland, replace both wayland and fallback-x11 with x11)
15:17__monty__: I've tried relying on the Qt that comes with the Flatpak KDE runtime but I think the API has changed too much.
15:17__monty__: OK, will give that a try.
16:17__monty__: kennylevinsen: That seems to have worked! Thanks a ton to everyone for entertaining my inexperience : )
16:18soreau: kennylevinsen: WAYLAND_DISPLAY="" isn't enough? :P