mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 23:35:55 +00:00
Fix window icons on Wayland
This commit is contained in:
parent
6a25a3a3d0
commit
30c5e3f237
@ -503,6 +503,11 @@ int main(int argc, char *argv[])
|
|||||||
app.setWindowIcon(QIcon(":/res/moonlight.svg"));
|
app.setWindowIcon(QIcon(":/res/moonlight.svg"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// This is necessary to show our icon correctly on Wayland
|
||||||
|
app.setDesktopFileName("com.moonlight_stream.Moonlight.desktop");
|
||||||
|
qputenv("SDL_VIDEO_WAYLAND_WMCLASS", "com.moonlight_stream.Moonlight");
|
||||||
|
qputenv("SDL_VIDEO_X11_WMCLASS", "com.moonlight_stream.Moonlight");
|
||||||
|
|
||||||
// Register our C++ types for QML
|
// Register our C++ types for QML
|
||||||
qmlRegisterType<ComputerModel>("ComputerModel", 1, 0, "ComputerModel");
|
qmlRegisterType<ComputerModel>("ComputerModel", 1, 0, "ComputerModel");
|
||||||
qmlRegisterType<AppModel>("AppModel", 1, 0, "AppModel");
|
qmlRegisterType<AppModel>("AppModel", 1, 0, "AppModel");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user