From 155cdab511309e7bd78492f8114f64b04b2e998e Mon Sep 17 00:00:00 2001 From: Jinhao Date: Thu, 27 Apr 2017 04:18:17 +0800 Subject: [PATCH] fix issue that invisble child window would be shown --- source/gui/detail/window_layout.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/gui/detail/window_layout.cpp b/source/gui/detail/window_layout.cpp index 86439dec..2596f67e 100644 --- a/source/gui/detail/window_layout.cpp +++ b/source/gui/detail/window_layout.cpp @@ -116,7 +116,8 @@ namespace nana for (auto* parent = wd->parent; parent; parent = parent->parent) { - overlap(rectangle{ parent->pos_root, parent->dimension }, visual, visual); + if (!overlap(rectangle{ parent->pos_root, parent->dimension }, visual, visual)) + return false; } return true;