forked from quickshell/quickshell
hyprland/surface: add hyprland surface opacity support
This commit is contained in:
parent
08836ca1f3
commit
3a40174ed6
14 changed files with 476 additions and 2 deletions
24
src/wayland/hyprland/surface/manager.cpp
Normal file
24
src/wayland/hyprland/surface/manager.cpp
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue