forked from quickshell/quickshell
24 lines
645 B
C++
24 lines
645 B
C++
#include "manager.hpp"
|
|
|
|
#include <private/qwaylandwindow_p.h>
|
|
#include <qwaylandclientextension.h>
|
|
|
|
#include "surface.hpp"
|
|
|
|
namespace qs::hyprland::surface::impl {
|
|
|
|
HyprlandSurfaceManager::HyprlandSurfaceManager(): QWaylandClientExtensionTemplate(1) {
|
|
this->initialize();
|
|
}
|
|
|
|
HyprlandSurface*
|
|
HyprlandSurfaceManager::createHyprlandExtension(QtWaylandClient::QWaylandWindow* surface) {
|
|
return new HyprlandSurface(this->get_hyprland_surface(surface->surface()));
|
|
}
|
|
|
|
HyprlandSurfaceManager* HyprlandSurfaceManager::instance() {
|
|
static auto* instance = new HyprlandSurfaceManager();
|
|
return instance;
|
|
}
|
|
|
|
} // namespace qs::hyprland::surface::impl
|