diff options
author | fluxgen <fluxgen> | 2003-12-21 23:23:03 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-12-21 23:23:03 (GMT) |
commit | 33d0a6025c19901929f515f641aa2ef4ca8e7048 (patch) | |
tree | 5b642af00fcac2550c6cd9fd9f99221e4489ed3c /src | |
parent | a11575f9596d12ef7c18c2af3031388028bdbd7d (diff) | |
download | fluxbox_paul-33d0a6025c19901929f515f641aa2ef4ca8e7048.zip fluxbox_paul-33d0a6025c19901929f515f641aa2ef4ca8e7048.tar.bz2 |
sync after input focus
Diffstat (limited to 'src')
-rw-r--r-- | src/Window.cc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/Window.cc b/src/Window.cc index c08cd19..be790ca 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Window.cc,v 1.256 2003/12/21 16:23:19 fluxgen Exp $ | 25 | // $Id: Window.cc,v 1.257 2003/12/21 23:23:03 fluxgen Exp $ |
26 | 26 | ||
27 | #include "Window.hh" | 27 | #include "Window.hh" |
28 | 28 | ||
@@ -1198,8 +1198,18 @@ bool FluxboxWindow::setInputFocus(long ignore_event) { | |||
1198 | 1198 | ||
1199 | if (m_client->getFocusMode() == WinClient::F_LOCALLYACTIVE || | 1199 | if (m_client->getFocusMode() == WinClient::F_LOCALLYACTIVE || |
1200 | m_client->getFocusMode() == WinClient::F_PASSIVE) { | 1200 | m_client->getFocusMode() == WinClient::F_PASSIVE) { |
1201 | |||
1201 | m_client->setInputFocus(RevertToPointerRoot, CurrentTime); | 1202 | m_client->setInputFocus(RevertToPointerRoot, CurrentTime); |
1202 | m_client->sendFocus(); | 1203 | |
1204 | FbTk::App *app = FbTk::App::instance(); | ||
1205 | |||
1206 | XFlush(app->display()); | ||
1207 | |||
1208 | m_client->sendFocus(); | ||
1209 | |||
1210 | app->sync(false); | ||
1211 | app->sync(false); | ||
1212 | |||
1203 | ret = true; | 1213 | ret = true; |
1204 | } else { | 1214 | } else { |
1205 | ret = m_client->sendFocus(); | 1215 | ret = m_client->sendFocus(); |