diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-13 00:47:40 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-13 00:47:40 (GMT) |
commit | b302dab2f187e364df36237c44b8e48f1e892f04 (patch) | |
tree | 207955232ddf7aef1b4a13ccb5ae85a2404aa509 /src/WinClient.cc | |
parent | f66d446a94450d509748afe28a95f48b8fdfcfc5 (diff) | |
download | fluxbox_lack-b302dab2f187e364df36237c44b8e48f1e892f04.zip fluxbox_lack-b302dab2f187e364df36237c44b8e48f1e892f04.tar.bz2 |
fix some issues with reverting focus
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 | ||