awesome/tests/examples/awful/mouse/coords.lua

17 lines
365 B
Lua

--DOC_GEN_IMAGE --DOC_HIDE
screen[1]._resize {x = 175, width = 128, height = 96} --DOC_HIDE
mouse.coords {x=175+60,y=60} --DOC_HIDE
-- Get the position
print(mouse.coords().x)
-- Change the position
mouse.coords {
x = 185,
y = 10
}
mouse.push_history() --DOC_HIDE
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80