summaryrefslogtreecommitdiff
path: root/src/layout/IHyprLayout.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-29 15:44:30 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-29 15:44:30 +0200
commit9842730f570b118275191fd2b3e8910648ab7b05 (patch)
treee7e8d4e410ce41f0c1af00372dc45d0fa5ea09d0 /src/layout/IHyprLayout.hpp
parentd0ff0c0990db230999cc918f1d6230c4a18d08c8 (diff)
Added fullscreen types, maximize and full
Diffstat (limited to 'src/layout/IHyprLayout.hpp')
-rw-r--r--src/layout/IHyprLayout.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp
index 01e3e04a..e9cf2a15 100644
--- a/src/layout/IHyprLayout.hpp
+++ b/src/layout/IHyprLayout.hpp
@@ -12,6 +12,8 @@ struct SLayoutMessageHeader {
CWindow* pWindow = nullptr;
};
+enum eFullscreenMode : uint8_t;
+
interface IHyprLayout {
public:
@@ -66,11 +68,11 @@ public:
virtual void onWindowCreatedFloating(CWindow*) = 0;
/*
- Called when a window requests to toggle its' fullscreen state.
+ Called when a window / the user requests to toggle the fullscreen state of a window
The layout sets all the fullscreen flags.
It can either accept or ignore.
*/
- virtual void fullscreenRequestForWindow(CWindow*) = 0;
+ virtual void fullscreenRequestForWindow(CWindow*, eFullscreenMode) = 0;
/*
Called when a dispatcher requests a custom message