2016-04-24 05:05:11 +02:00
|
|
|
screen[1]._resize {x = 175, width = 128, height = 96} --DOC_NO_USAGE --DOC_HIDE
|
2016-04-16 11:56:41 +02:00
|
|
|
local awful = {placement = require("awful.placement")} --DOC_HIDE
|
2016-04-24 05:05:11 +02:00
|
|
|
local c = client.gen_fake {x = 220, y = 35, width=40, height=30} --DOC_HIDE
|
2016-04-16 11:56:41 +02:00
|
|
|
|
2016-12-27 21:39:08 +01:00
|
|
|
-- "right" will be replaced by "left"
|
|
|
|
local f = (awful.placement.right + awful.placement.left)
|
|
|
|
f(client.focus)
|
2016-04-16 11:56:41 +02:00
|
|
|
|
2016-04-24 05:05:11 +02:00
|
|
|
local sg = screen[1].geometry--DOC_HIDE
|
|
|
|
assert(c.x == sg.x and c.y==sg.height/2-30/2-c.border_width--DOC_HIDE
|
2016-12-27 21:39:08 +01:00
|
|
|
and c.width==40 and c.height==30)--DOC_HIDE
|