fix problems with focus order when changing workspaces

This commit is contained in:
markt 2007-08-20 14:31:43 +00:00
parent 6f2c707eef
commit 270782c8a5
2 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,8 @@
(Format: Year/Month/Day)
Changes for 1.0.0:
*07/08/20:
* Fix some focus issues with moving windows between workspaces (Mark)
FocusControl.cc
*07/08/12:
* Updated de_* translations, #1767986 ( Thanks Christian Loosli )
*07/08/11:

View file

@ -421,11 +421,13 @@ void FocusControl::revertFocus(BScreen &screen) {
if (s_reverting)
return;
FocusControl::s_reverting = true;
WinClient *next_focus =
screen.focusControl().lastFocusedWindow(screen.currentWorkspaceID());
if (next_focus && next_focus->fbwindow() &&
next_focus->fbwindow()->isStuck())
FocusControl::s_reverting = true;
// if setting focus fails, or isn't possible, fallback correctly
if (!(next_focus && next_focus->focus())) {
setFocusedWindow(0); // so we don't get dangling m_focused_window pointer