forked from quickshell/quickshell
x11: add XPanelWindow
This commit is contained in:
parent
908ba3eef5
commit
73cfeba61b
15 changed files with 804 additions and 5 deletions
|
@ -1,5 +1,7 @@
|
|||
#include <qguiapplication.h>
|
||||
#include <qlogging.h>
|
||||
#include <qqml.h>
|
||||
#include <qtenvironmentvariables.h>
|
||||
|
||||
#include "../core/plugin.hpp"
|
||||
|
||||
|
@ -10,7 +12,19 @@
|
|||
namespace {
|
||||
|
||||
class WaylandPlugin: public QuickshellPlugin {
|
||||
bool applies() override { return QGuiApplication::platformName() == "wayland"; }
|
||||
bool applies() override {
|
||||
auto isWayland = QGuiApplication::platformName() == "wayland";
|
||||
|
||||
if (!isWayland && !qEnvironmentVariable("WAYLAND_DISPLAY").isEmpty()) {
|
||||
qWarning() << "--- WARNING ---";
|
||||
qWarning() << "WAYLAND_DISPLAY is present but QT_QPA_PLATFORM is"
|
||||
<< QGuiApplication::platformName();
|
||||
qWarning() << "If you are actually running wayland, set QT_QPA_PLATFORM to \"wayland\" or "
|
||||
"most functionality will be broken.";
|
||||
}
|
||||
|
||||
return isWayland;
|
||||
}
|
||||
|
||||
void registerTypes() override {
|
||||
#ifdef QS_WAYLAND_WLR_LAYERSHELL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue