config/lua: make stable_id field a string, matching hyprctl (#15869)

This commit is contained in:
Lucas Ritzdorf
2026-08-15 16:59:12 +02:00
committed by GitHub
parent a0c6946d66
commit fea3b3367b
+1 -1
View File
@@ -167,7 +167,7 @@ static int windowIndex(lua_State* L) {
} else if (key == "content_type") } else if (key == "content_type")
lua_pushstring(L, NContentType::toString(w->getContentType()).c_str()); lua_pushstring(L, NContentType::toString(w->getContentType()).c_str());
else if (key == "stable_id") else if (key == "stable_id")
lua_pushinteger(L, sc<lua_Integer>(w->m_stableID)); lua_pushstring(L, std::format("{:x}", w->m_stableID).c_str());
else if (key == "layout") { else if (key == "layout") {
const auto target = w->layoutTarget(); const auto target = w->layoutTarget();
if (!target || target->floating() || !w->m_workspace || !w->m_workspace->m_space) { if (!target || target->floating() || !w->m_workspace || !w->m_workspace->m_space) {