2018-07-24 14:27:41 +02:00
|
|
|
--DOC_GEN_OUTPUT --DOC_GEN_IMAGE --DOC_HIDE
|
2016-03-28 08:14:09 +02:00
|
|
|
local awful = {placement = require("awful.placement")} --DOC_HIDE
|
|
|
|
|
2019-11-10 07:12:43 +01:00
|
|
|
--DOC_HIDE no_offscreen is auto-called when startup is true, avoid this.
|
|
|
|
awesome.startup = false -- luacheck: globals awesome.startup --DOC_HIDE
|
|
|
|
|
2016-03-28 08:14:09 +02:00
|
|
|
local c = client.gen_fake {x = -30, y = -30, width= 100, height=100} --DOC_HIDE
|
|
|
|
|
|
|
|
print("Before:", "x="..c.x..", y="..c.y..", width="..c.width..", height="..c.height) --DOC_HIDE
|
|
|
|
|
2017-09-09 23:00:36 +02:00
|
|
|
awful.placement.no_offscreen(c, {honor_workarea=true, margins=40})
|
2016-03-28 08:14:09 +02:00
|
|
|
|
|
|
|
print("After:", "x="..c.x..", y="..c.y..", width="..c.width..", height="..c.height) --DOC_HIDE
|
2016-12-31 13:59:38 +01:00
|
|
|
|
|
|
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|