2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-07 10:05:13 +00:00

Move IsWayland() checks into WaylandIntegration

This commit is contained in:
mid-kid
2020-11-13 17:05:54 +01:00
committed by John Preston
parent 4ed6918a5e
commit 49480001f7
3 changed files with 7 additions and 6 deletions

View File

@@ -55,6 +55,7 @@ WaylandIntegration::WaylandIntegration() {
}
WaylandIntegration *WaylandIntegration::Instance() {
if (!IsWayland()) return nullptr;
static WaylandIntegration instance;
return &instance;
}