]> Dogcows Code - chaz/openbox/commitdiff
dont use what could be an invalid iterator
authorDana Jansens <danakj@orodu.net>
Mon, 26 Aug 2002 21:29:20 +0000 (21:29 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 26 Aug 2002 21:29:20 +0000 (21:29 +0000)
util/epist/screen.cc

index 416bb9bdd1de097162447656aa2fdb4700e3bf17..f0fb79eadae81a8248f5b5e4a4533b06f0a222dc 100644 (file)
@@ -546,8 +546,9 @@ void screen::updateActiveWindow() {
      * cycle stack.
      */
     if (_stacked_cycling && !_cycling) {
-      _clients.remove(*_active);
-      _clients.push_front(*_active);
+      XWindow *win = *_active;
+      _clients.remove(win);
+      _clients.push_front(win);
       _active = _clients.begin();
     }
 
This page took 0.026811 seconds and 4 git commands to generate.