aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Ramsay <i.am@jimramsay.com>2009-03-09 18:05:41 (GMT)
committerJim Ramsay <i.am@jimramsay.com>2009-03-09 18:05:41 (GMT)
commitc1dee4a4055f8f0dafadeca508ff5568e2d0ce08 (patch)
treea6f1ee4a46855e99ee53063b5593e34ea6011f9e
parent54c1ac8704c2ad81a597547912bdbf5cbf7967d9 (diff)
downloadfluxbox_paul-c1dee4a4055f8f0dafadeca508ff5568e2d0ce08.zip
fluxbox_paul-c1dee4a4055f8f0dafadeca508ff5568e2d0ce08.tar.bz2
Ignore EnterNotify on workspace change
Changing workspaces also reveals other windows, which causes unexpected focus changes.
-rw-r--r--src/Screen.cc3
1 files changed, 3 insertions, 0 deletions
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) {
1098 id == m_current_workspace->workspaceID()) 1098 id == m_current_workspace->workspaceID())
1099 return; 1099 return;
1100 1100
1101 /* Ignore all EnterNotify events until the pointer actually moves */
1102 this->focusControl().ignoreAtPointer();
1103
1101 FbTk::App::instance()->sync(false); 1104 FbTk::App::instance()->sync(false);
1102 1105
1103 FluxboxWindow *focused = FocusControl::focusedFbWindow(); 1106 FluxboxWindow *focused = FocusControl::focusedFbWindow();