mirror of
https://github.com/ItsDrike/hyprland-dwindle-autogroup.git
synced 2024-11-13 20:07:17 +00:00
ItsDrike
6932d4fb33
A recent change to hyprland, refactoring workspace storage has caused an
issue with including `<hyprland/src/layout/DwindleLayout.hpp>` directly,
since it utilizes the `PHLWORKSPACE` type, which however isn't imported
from this header file. Including
`<hyprland/src/desktop/DesktopTypes.hpp>` manually fixes this issue,
although it might be worth reporting this to hyprland, as this include
probably should be present in this file.
Introduced in Hyprland commit:
<ef23ef60c5
>
21 lines
799 B
C++
21 lines
799 B
C++
#pragma once
|
|
|
|
#include <hyprland/src/desktop/DesktopTypes.hpp> // needed for DwindleLayout.hpp
|
|
#include <hyprland/src/layout/DwindleLayout.hpp>
|
|
#include <hyprland/src/plugins/HookSystem.hpp>
|
|
#include <hyprland/src/plugins/PluginAPI.hpp>
|
|
|
|
const CColor s_notifyColor = {0x61 / 255.0f, 0xAF / 255.0f, 0xEF / 255.0f, 1.0f}; // RGBA
|
|
const PLUGIN_DESCRIPTION_INFO s_pluginDescription = {"dwindle-autogroup", "Dwindle Autogroup", "ItsDrike", "1.0"};
|
|
|
|
inline HANDLE PHANDLE = nullptr;
|
|
|
|
typedef void* (*createGroupFuncT)(CWindow*);
|
|
inline CFunctionHook* g_pCreateGroupHook = nullptr;
|
|
|
|
typedef void* (*destroyGroupFuncT)(CWindow*);
|
|
inline CFunctionHook* g_pDestroyGroupHook = nullptr;
|
|
|
|
typedef SDwindleNodeData* (*nodeFromWindowFuncT)(void*, CWindow*);
|
|
inline nodeFromWindowFuncT g_pNodeFromWindow = nullptr;
|