summaryrefslogtreecommitdiff
path: root/src/config/lua/objects/LuaWorkspace.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-05-06 13:56:12 +0100
committerGitHub <noreply@github.com>2026-05-06 13:56:12 +0100
commit1681bea42dd2f11ba3fe6df05560d0b231de3c76 (patch)
tree899103dbddf675a01758c7cdd379224c9c81a7fb /src/config/lua/objects/LuaWorkspace.cpp
parent5f1350f522d3fe3af78cbe30a98311763b3509d5 (diff)
config/lua: add simple layout API (#14258)
Adds a simple layout lua api
Diffstat (limited to 'src/config/lua/objects/LuaWorkspace.cpp')
-rw-r--r--src/config/lua/objects/LuaWorkspace.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/lua/objects/LuaWorkspace.cpp b/src/config/lua/objects/LuaWorkspace.cpp
index 3f89b41a..8cfb32e7 100644
--- a/src/config/lua/objects/LuaWorkspace.cpp
+++ b/src/config/lua/objects/LuaWorkspace.cpp
@@ -136,7 +136,7 @@ static int workspaceIndex(lua_State* L) {
std::string layoutName = "unknown";
if (ws->m_space && ws->m_space->algorithm() && ws->m_space->algorithm()->tiledAlgo()) {
const auto& TILED_ALGO = ws->m_space->algorithm()->tiledAlgo();
- layoutName = Layout::Supplementary::algoMatcher()->getNameForTiledAlgo(&typeid(*TILED_ALGO.get()));
+ layoutName = Layout::Supplementary::algoMatcher()->getNameForTiledAlgo(TILED_ALGO.get());
}
lua_pushstring(L, layoutName.c_str());
} else if (key == "last_window") {