forked from quickshell/quickshell
A fair amount of things are broken but not in the layershell interface itself. The shell window platform extensions are next in line for refactoring and relevent issues will be fixed then. Same for docs.
23 lines
759 B
C++
23 lines
759 B
C++
#include "shell_integration.hpp"
|
|
|
|
#include <private/qwaylandshellintegration_p.h>
|
|
#include <private/qwaylandshellsurface_p.h>
|
|
#include <private/qwaylandwindow_p.h>
|
|
|
|
#include "layer_surface.hpp"
|
|
#include "wayland-wlr-layer-shell-unstable-v1-client-protocol.h"
|
|
|
|
QSWaylandLayerShellIntegration::QSWaylandLayerShellIntegration()
|
|
: QtWaylandClient::QWaylandShellIntegrationTemplate<QSWaylandLayerShellIntegration>(4) {}
|
|
|
|
QSWaylandLayerShellIntegration::~QSWaylandLayerShellIntegration() {
|
|
if (this->object() != nullptr) {
|
|
zwlr_layer_shell_v1_destroy(this->object());
|
|
}
|
|
}
|
|
|
|
QtWaylandClient::QWaylandShellSurface*
|
|
QSWaylandLayerShellIntegration::createShellSurface(QtWaylandClient::QWaylandWindow* window) {
|
|
return new QSWaylandLayerSurface(this, window);
|
|
}
|