Change-Id: Ie5885f765c44fc88bfbb2d781810729ed2696aa6
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
if (!window)
{
DSLOG_ERR("DSTouch", "Given window is INVALID. (window : %p)", window);
+ __touchFocus = window;
+ if (__dswlTouch)
+ __dswlTouch->setFocus(nullptr);
return;
}
__dswlTouch->setFocus(waylandSurface);
}
+void DSTouch::resetFocus()
+{
+ if (__touchFocus)
+ {
+ __touchFocus = nullptr;
+ DSLOG_INF("DSTouch", "touchFocus has been reset.");
+ }
+
+ if (__dswlTouch)
+ __dswlTouch->resetFocus();
+}
+
std::shared_ptr<DSWindow> DSTouch::getFocus()
{
return __touchFocus;
void touchUp(int32_t id);
void touchMove(int32_t id, int x, int y);
void setFocus(std::shared_ptr<DSWindow> window);
+ void resetFocus();
std::shared_ptr<DSWindow> getFocus();
private: