mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-07 19:49:53 -05:00
a few changes here...
- foot no longer resizes by col,row because we've set every client to tiling - stop using a seperate enum for tagging in SceneNodeData - use enabling instead of positioning views out of the visible area
This commit is contained in:
parent
ff196693cd
commit
9173cab6b9
4 changed files with 53 additions and 14 deletions
|
|
@ -59,6 +59,7 @@ local master = function()
|
|||
return
|
||||
end
|
||||
|
||||
mez.view.set_enabled(ctx.tags[tag_id].master, true)
|
||||
if #ctx.tags[tag_id].stack == 0 then
|
||||
mez.view.set_size(ctx.tags[tag_id].master, res.width, res.height)
|
||||
mez.view.set_position(ctx.tags[tag_id].master, 0, 0)
|
||||
|
|
@ -67,6 +68,7 @@ local master = function()
|
|||
mez.view.set_position(ctx.tags[tag_id].master, 0, 0)
|
||||
|
||||
for i, stack_id in ipairs(ctx.tags[tag_id].stack) do
|
||||
mez.view.set_enabled(stack_id, true)
|
||||
mez.view.set_size(stack_id, res.width * (1 - ctx.master_ratio), res.height / #ctx.tags[tag_id].stack)
|
||||
mez.view.set_position(stack_id, res.width * ctx.master_ratio, (res.height / #ctx.tags[tag_id].stack * (i - 1)))
|
||||
end
|
||||
|
|
@ -78,12 +80,9 @@ local master = function()
|
|||
return
|
||||
end
|
||||
|
||||
mez.view.set_position(ctx.tags[tag_id].master, 0, -res.height)
|
||||
mez.view.set_size(ctx.tags[tag_id].master, res.width, res.height)
|
||||
|
||||
mez.view.set_enabled(ctx.tags[tag_id].master, false)
|
||||
for _, view in ipairs(ctx.tags[tag_id].stack) do
|
||||
mez.view.set_position(view, 0, -res.height)
|
||||
mez.view.set_size(view, res.width, res.height)
|
||||
mez.view.set_enabled(view, false)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue