summaryrefslogtreecommitdiff
path: root/src/Window.hpp
diff options
context:
space:
mode:
authorMightyPlaza <123664421+MightyPlaza@users.noreply.github.com>2023-10-30 14:54:12 +0000
committerGitHub <noreply@github.com>2023-10-30 14:54:12 +0000
commita1924ae4356657a06e43e740f1cf2e1634fa958d (patch)
tree3d73c334ec5bb22b956f8c0293ac61234fe11a9d /src/Window.hpp
parentcb6cfde6e82f9b146ba1bd937472aa17ec829167 (diff)
internal: create canBeGroupedInto() (#3693)
modified: src/Window.cpp modified: src/Window.hpp modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp
Diffstat (limited to 'src/Window.hpp')
-rw-r--r--src/Window.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Window.hpp b/src/Window.hpp
index f856b2a9..624d3325 100644
--- a/src/Window.hpp
+++ b/src/Window.hpp
@@ -11,16 +11,14 @@
#include "macros.hpp"
#include "managers/XWaylandManager.hpp"
-enum eIdleInhibitMode
-{
+enum eIdleInhibitMode {
IDLEINHIBIT_NONE = 0,
IDLEINHIBIT_ALWAYS,
IDLEINHIBIT_FULLSCREEN,
IDLEINHIBIT_FOCUS
};
-enum eGroupRules
-{
+enum eGroupRules {
// effective only during first map, except for _ALWAYS variant
GROUP_NONE = 0,
GROUP_SET = 1 << 0, // Open as new group or add to focused group
@@ -379,6 +377,7 @@ class CWindow {
CWindow* getGroupPrevious();
CWindow* getGroupWindowByIndex(int);
int getGroupSize();
+ bool canBeGroupedInto(CWindow* pWindow);
void setGroupCurrent(CWindow* pWindow);
void insertWindowToGroup(CWindow* pWindow);
void updateGroupOutputs();
@@ -428,4 +427,4 @@ struct std::formatter<CWindow*, CharT> : std::formatter<CharT> {
std::format_to(out, ", class: {}", g_pXWaylandManager->getAppIDClass(w));
return std::format_to(out, "]");
}
-}; \ No newline at end of file
+};