do not leave stale oplock behind

deiconify'ing a client on a different workspace left an oplock by a
shortcut return, turning the client semi- to inaccessible

BUG: 1010
This commit is contained in:
Thomas Lübking 2016-06-30 15:20:51 +02:00 committed by Mathias Gumz
parent 9d34cdbfa9
commit 2aba567ea6

View file

@ -1430,8 +1430,10 @@ void FluxboxWindow::deiconify(bool do_raise) {
}
}
if (m_workspace_number != screen().currentWorkspaceID())
if (m_workspace_number != screen().currentWorkspaceID()) {
oplock = false;
return;
}
show();