From f7dd1e74b2d8c0d98f17a93d62aedf06efdf479b Mon Sep 17 00:00:00 2001 From: ketmar Date: Fri, 26 Nov 2021 07:23:47 +0000 Subject: [PATCH] egra: post rebuild event on minimisation (because minimised windows won't do it) FossilOrigin-Name: af28b0aa58598a5e6ac5a425a05ed02bbd1a582924071f19b16bb9929d7fcfec --- egra/gui/subwindows.d | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/egra/gui/subwindows.d b/egra/gui/subwindows.d index ce92d63..e5778e5 100644 --- a/egra/gui/subwindows.d +++ b/egra/gui/subwindows.d @@ -1198,7 +1198,8 @@ public: if (aw is this) subwinDrag = null; mMinimised = true; lastHoverWindow = null; - widgetChanged(); + //widgetChanged(); + postScreenRebuild(); // because minimised widgets will not post this return true; } @@ -1208,13 +1209,6 @@ public: } public: - /* - enum MinSizeX = 16; - enum MinSizeY = 16; - enum MinMarginX = 3; - enum MinMarginY = 3; - */ - static T clampval(T) (in T val, in T min, in T max) pure nothrow @safe @nogc { pragma(inline, true); return (val < min ? min : val > max ? max : val); -- 2.11.4.GIT