diff options
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index f2466e3..487f0c0 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Screen.cc,v 1.235 2003/09/29 12:53:58 rathnor Exp $ | 25 | // $Id: Screen.cc,v 1.236 2003/10/02 16:14:41 rathnor Exp $ |
26 | 26 | ||
27 | 27 | ||
28 | #include "Screen.hh" | 28 | #include "Screen.hh" |
@@ -731,7 +731,10 @@ void BScreen::removeWindow(FluxboxWindow *win) { | |||
731 | 731 | ||
732 | void BScreen::removeClient(WinClient &client) { | 732 | void BScreen::removeClient(WinClient &client) { |
733 | 733 | ||
734 | WinClient *cyc = *cycling_window; | 734 | WinClient *cyc = 0; |
735 | if (cycling_window != focused_list.end()) | ||
736 | cyc = *cycling_window; | ||
737 | |||
735 | WinClient *focused = Fluxbox::instance()->getFocusedWindow(); | 738 | WinClient *focused = Fluxbox::instance()->getFocusedWindow(); |
736 | focused_list.remove(&client); | 739 | focused_list.remove(&client); |
737 | if (cyc == &client) { | 740 | if (cyc == &client) { |