tony / oxwm

parsed the fullscreen option in oxwm.rule.add Browse files
tonybanters committed 2026-10-06 parent 95b4bb6 commit 1ccdbc944454476f5b7399be978482dc31733f5d
Showing 1 changed file with 7 additions and 0 deletions. UnifiedSplit
+7 −0 src/config/lua.zig
@@ -738,6 +738,7 @@ fn luaRuleAdd(state: ?*c.lua_State) callconv(.c) c_int {
738 738 .title = null,
739 739 .tags = 0,
740 740 .is_floating = false,
741 + .is_fullscreen = false,
741 742 .monitor = -1,
742 743 .focus = false,
743 744 };
@@ -775,6 +776,12 @@ fn luaRuleAdd(state: ?*c.lua_State) callconv(.c) c_int {
775 776 }
776 777 c.lua_settop(s, -2);
777 778
779 + _ = c.lua_getfield(s, 1, "fullscreen");
780 + if (c.lua_type(s, -1) == c.LUA_TBOOLEAN) {
781 + rule.is_fullscreen = c.lua_toboolean(s, -1) != 0;
782 + }
783 + c.lua_settop(s, -2);
784 +
778 785 _ = c.lua_getfield(s, 1, "monitor");
779 786 if (c.lua_type(s, -1) == c.LUA_TNUMBER) {
780 787 rule.monitor = @intCast(c.lua_tointegerx(s, -1, null));