diff options
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 17615fe..0b477d7 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -1998,14 +1998,16 @@ void BScreen::clearHeads() { | |||
1998 | if (!hasXinerama()) return; | 1998 | if (!hasXinerama()) return; |
1999 | 1999 | ||
2000 | for (Workspaces::iterator i = m_workspaces_list.begin(); | 2000 | for (Workspaces::iterator i = m_workspaces_list.begin(); |
2001 | i != m_workspaces_list.end(); i++) { | 2001 | i != m_workspaces_list.end(); i++) { |
2002 | for (Workspace::Windows::iterator win = (*i)->windowList().begin(); | 2002 | for (Workspace::Windows::iterator win = (*i)->windowList().begin(); |
2003 | win != (*i)->windowList().end(); win++) { | 2003 | win != (*i)->windowList().end(); win++) { |
2004 | if (getHead((*win)->fbWindow()) == 0) { | 2004 | |
2005 | // first head is a safe bet here | 2005 | int closest_head = getHead((*win)->fbWindow()); |
2006 | (*win)->placeWindow(1); | 2006 | if (closest_head == 0) { |
2007 | closest_head = 1; // first head is a safe bet here | ||
2007 | } | 2008 | } |
2008 | } | 2009 | (*win)->placeWindow(closest_head); |
2010 | } | ||
2009 | } | 2011 | } |
2010 | } | 2012 | } |
2011 | 2013 | ||