Ignore EnterNotify on workspace change

Changing workspaces also reveals other windows, which causes unexpected focus
changes.
This commit is contained in:
Jim Ramsay 2009-03-09 14:05:41 -04:00
parent 54c1ac8704
commit c1dee4a405

View file

@ -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();