hyprland/surface: add hyprland surface opacity support

This commit is contained in:
outfoxxed 2025-01-01 15:28:09 -08:00
parent 08836ca1f3
commit 3a40174ed6
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
14 changed files with 476 additions and 2 deletions

View file

@ -0,0 +1,24 @@
#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