From 1df44210c81ae5ed3c037adc1346882df95a416e Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Tue, 24 Jul 2018 17:09:59 -0400 Subject: [PATCH] tests: Add many missing client properties so the tilebar loads correctly --- tests/examples/shims/client.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/examples/shims/client.lua b/tests/examples/shims/client.lua index 78790005..8b3cdda3 100644 --- a/tests/examples/shims/client.lua +++ b/tests/examples/shims/client.lua @@ -31,6 +31,7 @@ function client.gen_fake(args) ret.size_hints = {} ret.border_width = 1 ret.icon_sizes = {{16,16}} + ret.name = "Example Client" -- Apply all properties for k,v in pairs(args or {}) do @@ -120,6 +121,20 @@ function client.gen_fake(args) -- Set the attributes ret.screen = args.screen or screen[1] + -- Good enough for the geometry and border + ret.drawin = ret + ret.drawable = ret + + -- Make sure the layer properties are not `nil` + ret.ontop = false + ret.below = false + ret.above = false + ret.sticky = false + ret.maximized = false + ret.fullscreen = false + ret.maximized_vertical = false + ret.maximized_horizontal = false + -- Add to the client list table.insert(clients, ret)