diff --git a/tests/examples/shims/client.lua b/tests/examples/shims/client.lua index 10d7d14f7..6fe8dec09 100644 --- a/tests/examples/shims/client.lua +++ b/tests/examples/shims/client.lua @@ -19,8 +19,10 @@ end local function titlebar_meta(c) for _, position in ipairs {"top", "bottom", "left", "right" } do - c["titlebar_"..position] = function(size) --luacheck: no unused - return drawin{} + c["titlebar_"..position] = function(_, size) + local prop = "titlebar_"..position.."_size" + c._private[prop] = c._private[prop] or size + return drawin{}, c._private[prop] or 0 end end end