summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Window.cc14
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();