titlebar/close/moving of nwm windows

This commit is contained in:
kepler155c@gmail.com
2020-05-06 18:02:01 -06:00
parent 428477bdec
commit 9eff14f3ba
6 changed files with 68 additions and 12 deletions

View File

@@ -5,7 +5,6 @@
local Terminal = require('opus.terminal')
local Util = require('opus.util')
local colors = _G.colors
local device = _G.device
local Glasses = { }
@@ -102,6 +101,13 @@ function Glasses.create(args)
function gterm.getTextScale()
return opts.scale
end
function gterm.move(x, y)
if opts.x ~= x or opts.y ~= y then
opts.x, opts.y = x, y
pos = { x = opts.x * xs, y = opts.y * ys }
group.setPosition(pos.x, pos.y)
end
end
gterm.name = opts.name
gterm.side = opts.name