mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-24 02:45:57 +01:00
add getCurrentLayout to CWorkspace
This commit is contained in:
parent
3eaf35f1e2
commit
f4cf68f4ba
2 changed files with 16 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -63,21 +63,23 @@ class CWorkspace {
|
|||
bool m_bPersistent = false;
|
||||
|
||||
// Inert: destroyed and invalid. If this is true, release the ptr you have.
|
||||
bool inert();
|
||||
bool inert();
|
||||
|
||||
void startAnim(bool in, bool left, bool instant = false);
|
||||
void setActive(bool on);
|
||||
void startAnim(bool in, bool left, bool instant = false);
|
||||
void setActive(bool on);
|
||||
|
||||
void moveToMonitor(const int&);
|
||||
void moveToMonitor(const int&);
|
||||
|
||||
PHLWINDOW getLastFocusedWindow();
|
||||
void rememberPrevWorkspace(const PHLWORKSPACE& prevWorkspace);
|
||||
PHLWINDOW getLastFocusedWindow();
|
||||
void rememberPrevWorkspace(const PHLWORKSPACE& prevWorkspace);
|
||||
|
||||
std::string getConfigName();
|
||||
std::string getConfigName();
|
||||
|
||||
bool matchesStaticSelector(const std::string& selector);
|
||||
bool matchesStaticSelector(const std::string& selector);
|
||||
|
||||
void markInert();
|
||||
void markInert();
|
||||
|
||||
IHyprLayout* getCurrentLayout();
|
||||
|
||||
private:
|
||||
void init(PHLWORKSPACE self);
|
||||
|
|
Loading…
Reference in a new issue