tests: Add many missing client properties so the tilebar loads correctly

This commit is contained in:
Emmanuel Lepage Vallee 2018-07-24 17:09:59 -04:00
parent ff9f78ef7e
commit 1df44210c8
1 changed files with 15 additions and 0 deletions

View File

@ -31,6 +31,7 @@ function client.gen_fake(args)
ret.size_hints = {} ret.size_hints = {}
ret.border_width = 1 ret.border_width = 1
ret.icon_sizes = {{16,16}} ret.icon_sizes = {{16,16}}
ret.name = "Example Client"
-- Apply all properties -- Apply all properties
for k,v in pairs(args or {}) do for k,v in pairs(args or {}) do
@ -120,6 +121,20 @@ function client.gen_fake(args)
-- Set the attributes -- Set the attributes
ret.screen = args.screen or screen[1] 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 -- Add to the client list
table.insert(clients, ret) table.insert(clients, ret)