add getCurrentLayout to CWorkspace

This commit is contained in:
UjinT34 2024-06-16 13:18:02 +03:00
parent 3eaf35f1e2
commit f4cf68f4ba
2 changed files with 16 additions and 9 deletions

View file

@ -1,6 +1,7 @@
#include "Workspace.hpp"
#include "../Compositor.hpp"
#include "../config/ConfigValue.hpp"
#include "managers/LayoutManager.hpp"
#include <hyprutils/string/String.hpp>
using namespace Hyprutils::String;
@ -508,3 +509,7 @@ void CWorkspace::markInert() {
bool CWorkspace::inert() {
return m_bInert;
}
IHyprLayout* CWorkspace::getCurrentLayout() {
return g_pLayoutManager->getCurrentLayout();
}

View file

@ -79,6 +79,8 @@ class CWorkspace {
void markInert();
IHyprLayout* getCurrentLayout();
private:
void init(PHLWORKSPACE self);