more window stuff, still unfinished

This commit is contained in:
airstruck
2015-12-17 16:52:51 -05:00
parent f9924fb028
commit e2602348df
21 changed files with 634 additions and 151 deletions

View File

@@ -214,8 +214,15 @@ function Input:handleReshape (layout, width, height)
local root = layout.root
root:reshape()
root.dimensions.width = width
root.dimensions.height = height
if root.type ~= 'window' then
if not root.width then
root.dimensions.width = width
end
if not root.height then
root.dimensions.height = height
end
end
Event.Reshape:emit(layout, { target = layout })
end