don't raise a window after cycling if it has been minimized

This commit is contained in:
markt 2006-08-03 21:23:08 +00:00
parent 81c650c63e
commit 52d3f3f6b6
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,8 @@
(Format: Year/Month/Day)
Changes for 1.0rc3:
*06/08/03:
* Don't raise a window after cycling if it has been minimized (Mark)
FocusControl.cc
* Added support for negative arguments to the `Tab' key command to count
backwards from the last tab in the group (Mark)
CurrentWindowCmd.cc

View file

@ -163,7 +163,9 @@ void FocusControl::stopCyclingFocus() {
// in which case we'll do a proper revert focus
if (m_cycling_creation_order && m_cycling_window != m_creation_order_list.end())
m_cycling_window = find(m_focused_list.begin(),m_focused_list.end(),*m_cycling_window);
if (m_cycling_window != m_focused_list.end() && m_cycling_window != m_creation_order_list.end()) {
if (m_cycling_window != m_focused_list.end() &&
m_cycling_window != m_creation_order_list.end() &&
(*m_cycling_window)->fbwindow()->isVisible()) {
WinClient *client = *m_cycling_window;
m_focused_list.erase(m_cycling_window);
m_focused_list.push_front(client);