From c1dee4a4055f8f0dafadeca508ff5568e2d0ce08 Mon Sep 17 00:00:00 2001 From: Jim Ramsay Date: Mon, 9 Mar 2009 14:05:41 -0400 Subject: Ignore EnterNotify on workspace change Changing workspaces also reveals other windows, which causes unexpected focus changes. --- src/Screen.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Screen.cc b/src/Screen.cc index 8b605e7..4d9a65f 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -1098,6 +1098,9 @@ void BScreen::changeWorkspaceID(unsigned int id, bool revert) { id == m_current_workspace->workspaceID()) return; + /* Ignore all EnterNotify events until the pointer actually moves */ + this->focusControl().ignoreAtPointer(); + FbTk::App::instance()->sync(false); FluxboxWindow *focused = FocusControl::focusedFbWindow(); -- cgit v0.11.2