quickshell/src/window/init.cpp

22 lines
494 B
C++

#include "../core/plugin.hpp"
namespace {
class WindowPlugin: public QuickshellPlugin {
// _Window has to be registered before wayland or x11 modules, otherwise module overlays
// will apply in the wrong order.
QString name() override { return "window"; }
void registerTypes() override {
qmlRegisterModuleImport(
"Quickshell",
QQmlModuleImportModuleAny,
"Quickshell._Window",
QQmlModuleImportLatest
);
}
};
QS_REGISTER_PLUGIN(WindowPlugin);
} // namespace