diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-08 01:43:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-08 01:43:04 +0300 |
commit | 5d190c3ae47aef32c1f1fe48f36dd27cec721cf3 (patch) | |
tree | e1788d79f031ff8196bd9de084cb95771770518d /src/progs/dyecmd | |
parent | 676c5e978cbb312fbf4df8ec396c0f8b08944a96 (diff) | |
download | manaverse-5d190c3ae47aef32c1f1fe48f36dd27cec721cf3.tar.gz manaverse-5d190c3ae47aef32c1f1fe48f36dd27cec721cf3.tar.bz2 manaverse-5d190c3ae47aef32c1f1fe48f36dd27cec721cf3.tar.xz manaverse-5d190c3ae47aef32c1f1fe48f36dd27cec721cf3.zip |
Focus previous window after pin code accepted by server.
Diffstat (limited to 'src/progs/dyecmd')
-rw-r--r-- | src/progs/dyecmd/client.cpp | 8 | ||||
-rw-r--r-- | src/progs/dyecmd/client.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/progs/dyecmd/client.cpp b/src/progs/dyecmd/client.cpp index 9c43b18bf..40b2ad48f 100644 --- a/src/progs/dyecmd/client.cpp +++ b/src/progs/dyecmd/client.cpp @@ -801,6 +801,14 @@ void Client::windowRemoved(const Window *const window) mCurrentDialog = nullptr; } +void Client::focusWindow() +{ + if (mCurrentDialog != nullptr) + { + mCurrentDialog->requestFocus(); + } +} + void Client::logVars() { #ifdef ANDROID diff --git a/src/progs/dyecmd/client.h b/src/progs/dyecmd/client.h index 88522e49a..89dd82e11 100644 --- a/src/progs/dyecmd/client.h +++ b/src/progs/dyecmd/client.h @@ -74,6 +74,8 @@ class Client final : public ActionListener void windowRemoved(const Window *const window); + void focusWindow(); + void slowLogic(); static bool isTmw(); |