2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-07 01:55:12 +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

@@ -7,6 +7,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "platform/linux/linux_wayland_integration.h"
#include "base/platform/base_platform_info.h"
namespace Platform {
namespace internal {
@@ -14,6 +16,7 @@ WaylandIntegration::WaylandIntegration() {
}
WaylandIntegration *WaylandIntegration::Instance() {
if (!IsWayland()) return nullptr;
static WaylandIntegration instance;
return &instance;
}