screen: Support property fallback
This commit is contained in:
parent
89a1dab845
commit
3322a17182
|
@ -15,6 +15,7 @@ local capi =
|
||||||
client = client
|
client = client
|
||||||
}
|
}
|
||||||
local util = require("awful.util")
|
local util = require("awful.util")
|
||||||
|
local object = require("gears.object")
|
||||||
|
|
||||||
local function get_screen(s)
|
local function get_screen(s)
|
||||||
return s and capi.screen[s]
|
return s and capi.screen[s]
|
||||||
|
@ -245,6 +246,9 @@ end
|
||||||
|
|
||||||
capi.screen.add_signal("padding")
|
capi.screen.add_signal("padding")
|
||||||
|
|
||||||
|
-- Extend the luaobject
|
||||||
|
object.properties(capi.screen, {auto_emit=true})
|
||||||
|
|
||||||
return screen
|
return screen
|
||||||
|
|
||||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||||
|
|
Loading…
Reference in New Issue