diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-17 18:25:16 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-17 18:25:16 +0100 |
| commit | 6e1819b3dc74b7fa89a271dca338a10f638c105f (patch) | |
| tree | 6617e027d915e88d7d915d4e6da3a453a195a01b /src/helpers | |
| parent | a4ef84d987120707f0cda9cb21068ce1c0285cd2 (diff) | |
some events
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/Monitor.hpp | 10 | ||||
| -rw-r--r-- | src/helpers/WLClasses.hpp | 18 |
2 files changed, 28 insertions, 0 deletions
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 <deque> +#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<SLayerSurface> 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 |
