Ignore EnterNotify on workspace change
Changing workspaces also reveals other windows, which causes unexpected focus changes.
This commit is contained in:
parent
54c1ac8704
commit
c1dee4a405
1 changed files with 3 additions and 0 deletions
|
@ -1098,6 +1098,9 @@ void BScreen::changeWorkspaceID(unsigned int id, bool revert) {
|
||||||
id == m_current_workspace->workspaceID())
|
id == m_current_workspace->workspaceID())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* Ignore all EnterNotify events until the pointer actually moves */
|
||||||
|
this->focusControl().ignoreAtPointer();
|
||||||
|
|
||||||
FbTk::App::instance()->sync(false);
|
FbTk::App::instance()->sync(false);
|
||||||
|
|
||||||
FluxboxWindow *focused = FocusControl::focusedFbWindow();
|
FluxboxWindow *focused = FocusControl::focusedFbWindow();
|
||||||
|
|
Loading…
Reference in a new issue