From 6e1819b3dc74b7fa89a271dca338a10f638c105f Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 17 Mar 2022 18:25:16 +0100 Subject: some events --- src/helpers/Monitor.hpp | 10 ++++++++++ src/helpers/WLClasses.hpp | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 src/helpers/WLClasses.hpp (limited to 'src/helpers') diff --git a/src/helpers/Monitor.hpp b/src/helpers/Monitor.hpp index 6931db1e..b9679933 100644 --- a/src/helpers/Monitor.hpp +++ b/src/helpers/Monitor.hpp @@ -1,6 +1,8 @@ #pragma once #include "../defines.hpp" +#include +#include "WLClasses.hpp" struct SMonitor { Vector2D vecPosition = Vector2D(0,0); @@ -14,4 +16,12 @@ struct SMonitor { Vector2D vecReservedTopLeft = Vector2D(0,0); Vector2D vecReservedBottomRight = Vector2D(0,0); + + // WLR stuff + wlr_output* output = nullptr; + + std::deque m_dLayerSurfaces; + + DYNLISTENER(monitorFrame); + DYNLISTENER(monitorDestroy); }; \ No newline at end of file diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp new file mode 100644 index 00000000..37f44e5c --- /dev/null +++ b/src/helpers/WLClasses.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include "../events/Events.hpp" +#include "../defines.hpp" +#include "../../wlr-layer-shell-unstable-v1-protocol.h" + +struct SLayerSurface { + wlr_layer_surface_v1* layerSurface; + wl_list link; + + DYNLISTENER(destroyLayerSurface); + DYNLISTENER(mapLayerSurface); + DYNLISTENER(unmapLayerSurface); + DYNLISTENER(commitLayerSurface); + + wlr_box geometry; + zwlr_layer_shell_v1_layer layer; +}; \ No newline at end of file -- cgit v1.2.3