From: Sung-Jin Park Date: Thu, 20 Aug 2020 06:01:01 +0000 (+0900) Subject: DSWaylandKeyboard: add resetFocus() X-Git-Tag: accepted/tizen/unified/20200820.213435~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F66%2F241866%2F1;p=platform%2Fcore%2Fuifw%2Flibds.git DSWaylandKeyboard: add resetFocus() Change-Id: I4bb3fbb00fd297762daeed0671cf0b3200f2aed1 Signed-off-by: Sung-Jin Park --- diff --git a/src/DSWaylandServer/DSWaylandKeyboard.cpp b/src/DSWaylandServer/DSWaylandKeyboard.cpp index 48ce7f4..e920198 100644 --- a/src/DSWaylandServer/DSWaylandKeyboard.cpp +++ b/src/DSWaylandServer/DSWaylandKeyboard.cpp @@ -285,6 +285,13 @@ void DSWaylandKeyboard::setFocus(DSWaylandSurface *waylandSurface) } } +void DSWaylandKeyboard::resetFocus() +{ + DS_GET_PRIV(DSWaylandKeyboard); + priv->__focusSurface = nullptr; + priv->__focusClient = nullptr; +} + DSWaylandSurface *DSWaylandKeyboard::getFocus() { DS_GET_PRIV(DSWaylandKeyboard); diff --git a/src/DSWaylandServer/DSWaylandKeyboard.h b/src/DSWaylandServer/DSWaylandKeyboard.h index 0dd4722..1a577b9 100644 --- a/src/DSWaylandServer/DSWaylandKeyboard.h +++ b/src/DSWaylandServer/DSWaylandKeyboard.h @@ -51,6 +51,7 @@ public: void addClient(DSWaylandClient *client, uint32_t id, int version); void setFocus(DSWaylandSurface *waylandSurface); + void resetFocus(); DSWaylandSurface *getFocus(); void sendKeyDown(uint32_t keycode);