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

Allow qualified notification daemons by default on Linux

This commit is contained in:
Ilya Fedin
2021-01-13 13:56:49 +04:00
committed by John Preston
parent 49736cd879
commit 64b12bde55
6 changed files with 86 additions and 24 deletions

View File

@@ -27,9 +27,15 @@ bool Supported() {
return false;
}
bool Enforced() {
// Wayland doesn't support positioning
// and custom notifications don't work here
return IsWayland();
}
std::unique_ptr<Window::Notifications::Manager> Create(
Window::Notifications::System *system) {
if (IsWayland()) {
if (Enforced()) {
return std::make_unique<Window::Notifications::DummyManager>(system);
}