2024-09-09 10:18:17 +00:00
|
|
|
/*
|
2024-09-17 19:00:25 +00:00
|
|
|
* Deskflow -- mouse and keyboard sharing utility
|
2025-01-24 00:11:17 +00:00
|
|
|
* SPDX-FileCopyrightText: (C) 2024 Symless Ltd.
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
2024-09-09 10:18:17 +00:00
|
|
|
*/
|
|
|
|
|
|
2024-10-06 13:03:26 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
2024-09-09 10:18:17 +00:00
|
|
|
#include <QWidget>
|
|
|
|
|
|
2025-03-19 22:04:30 +00:00
|
|
|
#include "platform/Wayland.h"
|
2024-09-09 10:18:17 +00:00
|
|
|
|
2024-09-17 19:00:25 +00:00
|
|
|
namespace deskflow::gui::core {
|
2024-09-09 10:18:17 +00:00
|
|
|
|
2024-10-17 18:04:35 +00:00
|
|
|
class WaylandWarnings
|
|
|
|
|
{
|
2024-09-09 10:18:17 +00:00
|
|
|
public:
|
2025-05-10 02:49:41 +00:00
|
|
|
explicit WaylandWarnings() = default;
|
2024-09-09 10:18:17 +00:00
|
|
|
|
|
|
|
|
void showOnce(
|
2025-03-10 02:50:44 +00:00
|
|
|
QWidget *parent, bool hasEi = platform::kHasEi, bool hasPortal = platform::kHasPortal,
|
2024-10-17 18:04:35 +00:00
|
|
|
bool hasPortalInputCapture = platform::kHasPortalInputCapture
|
|
|
|
|
);
|
2024-09-09 10:18:17 +00:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
bool m_errorShown{false};
|
|
|
|
|
};
|
|
|
|
|
|
2024-09-17 19:00:25 +00:00
|
|
|
} // namespace deskflow::gui::core
|