mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
more window stuff, still unfinished
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user