diff options
Diffstat (limited to 'src/WinClient.cc')
-rw-r--r-- | src/WinClient.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/WinClient.cc b/src/WinClient.cc index ed6fe25..450a041 100644 --- a/src/WinClient.cc +++ b/src/WinClient.cc | |||
@@ -174,7 +174,8 @@ bool WinClient::acceptsFocus() const { | |||
174 | 174 | ||
175 | bool WinClient::sendFocus() { | 175 | bool WinClient::sendFocus() { |
176 | if (accepts_input) { | 176 | if (accepts_input) { |
177 | setInputFocus(RevertToParent, CurrentTime); | 177 | setInputFocus(RevertToPointerRoot, CurrentTime); |
178 | FocusControl::setExpectingFocus(this); | ||
178 | return true; | 179 | return true; |
179 | } | 180 | } |
180 | if (!send_focus_message) | 181 | if (!send_focus_message) |
@@ -198,6 +199,7 @@ bool WinClient::sendFocus() { | |||
198 | ce.xclient.data.l[4] = 0l; | 199 | ce.xclient.data.l[4] = 0l; |
199 | // send focus msg | 200 | // send focus msg |
200 | XSendEvent(display(), window(), false, NoEventMask, &ce); | 201 | XSendEvent(display(), window(), false, NoEventMask, &ce); |
202 | FocusControl::setExpectingFocus(this); | ||
201 | return true; | 203 | return true; |
202 | } | 204 | } |
203 | 205 | ||