mirror of
https://github.com/jellyfin/jellyfin-desktop.git
synced 2026-10-26 16:45:24 +00:00
- Fixes build and package for at least Ubuntu 24.04 - Defaulted to building and statically linking mpvqt as most platforms lack packages for it. - Workaround mpvqt requiring qt>=6.5 for wayland support with a few workarounds when statically building. - Additionally, default to xcb on qt<6.5 due to mpvqt using qt>=6.5 fetures for wayland. Wayland can be forced, but seems to give black video.
27 lines
548 B
C++
27 lines
548 B
C++
// Compatibility header for Qt < 6.5 that lacks QWaylandApplication
|
|
#ifndef QT_WAYLAND_COMPAT_H
|
|
#define QT_WAYLAND_COMPAT_H
|
|
|
|
#include <QtCore/qglobal.h>
|
|
|
|
#if QT_VERSION < QT_VERSION_CHECK(6, 5, 0)
|
|
|
|
#include <QtCore/qnativeinterface.h>
|
|
#include <QtGui/qguiapplication.h>
|
|
|
|
struct wl_display;
|
|
|
|
namespace QNativeInterface {
|
|
|
|
struct Q_GUI_EXPORT QWaylandApplication
|
|
{
|
|
QT_DECLARE_NATIVE_INTERFACE(QWaylandApplication, 1, QGuiApplication)
|
|
virtual wl_display *display() const = 0;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // QT_VERSION < 6.5.0
|
|
|
|
#endif // QT_WAYLAND_COMPAT_H
|