diff --git a/tests/examples/awful/placement/align.lua b/tests/examples/awful/placement/align.lua index 24a64410a..69e6b9cd6 100644 --- a/tests/examples/awful/placement/align.lua +++ b/tests/examples/awful/placement/align.lua @@ -7,7 +7,7 @@ for _, pos in ipairs{ "left", "right", "top", "bottom", "centered", } do local c1 = client.gen_fake {x = 80, y = 55, width=75, height=50} -c1:_hide() +c1:_hide_all() placement.align(client.focus, {position = pos, honor_workarea=true}) c1:set_label(pos) end diff --git a/tests/examples/awful/placement/maximize.lua b/tests/examples/awful/placement/maximize.lua index 494ff3c6d..aa40c2bf9 100644 --- a/tests/examples/awful/placement/maximize.lua +++ b/tests/examples/awful/placement/maximize.lua @@ -10,6 +10,7 @@ for k, pos in ipairs{ --DOC_HIDE local c1 = client.gen_fake {--DOC_HIDE x = screen[k].geometry.x+40, --DOC_HIDE y = screen[k].geometry.y+40, width=75, height=50, screen=screen[k]} --DOC_HIDE + c1:_hide_all() --DOC_HIDE placement.maximize(c1, {axis = pos ~= "" and pos or nil}) --DOC_HIDE if k == 1 then --DOC_HIDE diff --git a/tests/examples/awful/placement/maximize_horizontally.lua b/tests/examples/awful/placement/maximize_horizontally.lua index 7fdf965ff..de0f85b2a 100644 --- a/tests/examples/awful/placement/maximize_horizontally.lua +++ b/tests/examples/awful/placement/maximize_horizontally.lua @@ -8,6 +8,7 @@ screen[1]._resize {width = 128, height = 96} --DOC_HIDE local placement = require("awful.placement") --DOC_HIDE local c = client.gen_fake {x = 45, y = 35, width=40, height=30} --DOC_HIDE +c:_hide_all() --DOC_HIDE placement.maximize_horizontally(c) assert(c.width + 2*c.border_width == screen[1].geometry.width) --DOC_HIDE diff --git a/tests/examples/awful/placement/maximize_vertically.lua b/tests/examples/awful/placement/maximize_vertically.lua index b37581157..d3ef034bd 100644 --- a/tests/examples/awful/placement/maximize_vertically.lua +++ b/tests/examples/awful/placement/maximize_vertically.lua @@ -8,6 +8,7 @@ screen[1]._resize {width = 128, height = 96} --DOC_HIDE local placement = require("awful.placement") --DOC_HIDE local c = client.gen_fake {x = 45, y = 35, width=40, height=30} --DOC_HIDE +c:_hide_all() --DOC_HIDE placement.maximize_vertically(c) assert(c.height+2*c.border_width == screen[1].geometry.height)--DOC_HIDE diff --git a/tests/examples/awful/placement/next_to.lua b/tests/examples/awful/placement/next_to.lua index ae3557280..ccaa893e1 100644 --- a/tests/examples/awful/placement/next_to.lua +++ b/tests/examples/awful/placement/next_to.lua @@ -3,14 +3,14 @@ local awful = { placement = require("awful.placement") }--DOC_HIDE screen[1]._resize {x= 0, width = 640, height=200} --DOC_HIDE local parent_client = client.gen_fake {x = 0, y = 0, width=350, height=70} --DOC_HIDE -parent_client:_hide() --DOC_HIDE +parent_client:_hide_all() --DOC_HIDE awful.placement.centered(client.focus) --DOC_HIDE parent_client:set_label("Parent client") --DOC_HIDE for _, pos in ipairs{"left", "right", "top", "bottom"} do for _, anchor in ipairs{"front", "middle", "back"} do local c1 = client.gen_fake {x = 0, y = 0, width=80, height=20} --DOC_HIDE - c1:_hide() --DOC_HIDE + c1:_hide_all() --DOC_HIDE local _,p,a = --DOC_HIDE awful.placement.next_to( client.focus,