From 87a69959c7b890202c006f21f02004e4ecfb9790 Mon Sep 17 00:00:00 2001 From: Scott Duensing Date: Sat, 3 Sep 2022 18:58:54 -0500 Subject: [PATCH] Whoops - you can now restore minimized windows. --- roo-e/src/gui/wmwindow.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roo-e/src/gui/wmwindow.c b/roo-e/src/gui/wmwindow.c index 4c81f68..f83fa0d 100644 --- a/roo-e/src/gui/wmwindow.c +++ b/roo-e/src/gui/wmwindow.c @@ -266,6 +266,7 @@ WindowT *windowCreate(uint16_t x, uint16_t y, uint16_t w, uint16_t h, char *titl if (flags & WIN_SCROLL_V) sflags |= SCROLLABLE_SCROLL_V; } + //***TODO*** We shouldn't be doing this for non-resizable windows that don't scroll. Or maybe it's simpler to just leave it? win->scroll = scrollableCreate(visibleSize.x, visibleSize.y, totalSize.x, totalSize.y, sflags); win->scroll->base.flags |= WIDGET_IS_WINDOW; widgetAdd(W(win), 0, 0, W(win->scroll)); @@ -689,15 +690,14 @@ void wmUpdate(EventT *event) { _iconCount = 0; for (i=0; ireg->paint(widget, 0); + widget->reg->paint(widget, WINDOW_PAINT_ICONS); } // Paint all windows. - _iconCount = 0; for (i=0; ireg->paint(widget, 1); + widget->reg->paint(widget, WINDOW_PAINT_NORMAL); } // Get top window.