aboutsummaryrefslogtreecommitdiff
path: root/src/FocusControl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FocusControl.cc')
-rw-r--r--src/FocusControl.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/FocusControl.cc b/src/FocusControl.cc
index d78f997..11ee0a7 100644
--- a/src/FocusControl.cc
+++ b/src/FocusControl.cc
@@ -278,8 +278,8 @@ Focusable *FocusControl::lastFocusedWindow(int workspace) {
278 if (workspace < 0 || workspace >= (int) m_screen.numberOfWorkspaces()) 278 if (workspace < 0 || workspace >= (int) m_screen.numberOfWorkspaces())
279 return m_focused_list.front(); 279 return m_focused_list.front();
280 280
281 Focusables::iterator it = m_focused_win_list.begin(); 281 Focusables::iterator it = m_focused_list.begin();
282 Focusables::iterator it_end = m_focused_win_list.end(); 282 Focusables::iterator it_end = m_focused_list.end();
283 for (; it != it_end; ++it) { 283 for (; it != it_end; ++it) {
284 if ((*it)->fbwindow() && 284 if ((*it)->fbwindow() &&
285 ((((int)(*it)->fbwindow()->workspaceNumber()) == workspace || 285 ((((int)(*it)->fbwindow()->workspaceNumber()) == workspace ||
@@ -472,6 +472,8 @@ void FocusControl::shutdown() {
472 Focusables::reverse_iterator it = m_focused_list.rbegin(); 472 Focusables::reverse_iterator it = m_focused_list.rbegin();
473 for (; it != m_focused_list.rend(); ++it) { 473 for (; it != m_focused_list.rend(); ++it) {
474 WinClient *client = dynamic_cast<WinClient *>(*it); 474 WinClient *client = dynamic_cast<WinClient *>(*it);
475if (client)
476std::cerr << "FocusControl::shutdown: " << client->title() << std::endl;
475 if (client && client->fbwindow()) 477 if (client && client->fbwindow())
476 client->fbwindow()->restore(client, true); 478 client->fbwindow()->restore(client, true);
477 } 479 }
@@ -487,7 +489,7 @@ void FocusControl::revertFocus(BScreen &screen) {
487 489
488 FocusControl::s_reverting = true; 490 FocusControl::s_reverting = true;
489 491
490 Focusable *next_focus = 492 Focusable *next_focus =
491 screen.focusControl().lastFocusedWindow(screen.currentWorkspaceID()); 493 screen.focusControl().lastFocusedWindow(screen.currentWorkspaceID());
492 494
493 // if setting focus fails, or isn't possible, fallback correctly 495 // if setting focus fails, or isn't possible, fallback correctly