From: Sung-Jin Park Date: Wed, 19 Aug 2020 03:58:28 +0000 (+0900) Subject: DSSeat: fix build warning, getTopWindowOnPosition() to return value properly X-Git-Tag: accepted/tizen/unified/20200820.213435~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7af387d3d651bf907da8f5d4203ba22ee8e8b1d;p=platform%2Fcore%2Fuifw%2Flibds.git DSSeat: fix build warning, getTopWindowOnPosition() to return value properly Change-Id: I8b8c9072f8a7e6c7eb91968f58f5e5744e58b36f Signed-off-by: Sung-Jin Park --- diff --git a/src/DSSeat/DSSeat.cpp b/src/DSSeat/DSSeat.cpp index d8aab6c..b98574d 100644 --- a/src/DSSeat/DSSeat.cpp +++ b/src/DSSeat/DSSeat.cpp @@ -21,7 +21,6 @@ * DEALINGS IN THE SOFTWARE. */ -#include "DSCore.h" #include "DSSeat.h" #include "DSInput.h" #include "DSCompositor.h" @@ -30,6 +29,7 @@ #include "DSInputEvent.h" #include "DSXkb.h" #include "DSZone.h" +#include "DSWindow.h" #include "DSPointer.h" #include "DSKeyboard.h" @@ -515,8 +515,7 @@ std::shared_ptr DSSeat::getTopWindowOnPosition(int x, int y) stPosition wPos; stSize wSize; - std::list> wList = __zone->getWindowList(); - for (auto w : wList) + for (std::shared_ptr w : __zone->getWindowList()) { wSize = w->getSize(); wPos = w->getPosition(); @@ -527,6 +526,8 @@ std::shared_ptr DSSeat::getTopWindowOnPosition(int x, int y) return w; } } + + return nullptr; } } // namespace display_server