move trigger code from Window to Panel

where the drag/resize code actually is. Panels can be dragged around the
parent screen without them being a Window
develop
Myk Taylor 2022-12-30 20:01:09 -08:00
parent 70a0f4a718
commit 88dcdfd158
No known key found for this signature in database
1 changed files with 3 additions and 4 deletions

@ -441,6 +441,9 @@ end
-- if self.autoarrange_subviews is true, lay out visible subviews vertically,
-- adding gaps between widgets according to self.autoarrange_gap.
function Panel:postUpdateLayout()
-- don't leave artifacts behind on the parent screen when we move
gui.Screen.request_full_screen_refresh = true
if not self.autoarrange_subviews then return end
local gap = self.autoarrange_gap
@ -487,10 +490,6 @@ Window.ATTRS {
draggable = true,
}
function Window:postUpdateLayout()
gui.Screen.request_full_screen_refresh = true
end
-------------------
-- ResizingPanel --
-------------------