]> Dogcows Code - chaz/openbox/blobdiff - util/epist/screen.cc
update the active iterator after moving the active window to the front of the list
[chaz/openbox] / util / epist / screen.cc
index 416bb9bdd1de097162447656aa2fdb4700e3bf17..a67b0a37ec0ed7c62070170c6d26ad135099cd75 100644 (file)
@@ -392,6 +392,7 @@ void screen::handleKeyrelease(const XEvent &) {
 
     _clients.remove(w);
     _clients.push_front(w);
+    _active = _clients.begin();
     w->raise();
 
     _cycling = false;
@@ -546,8 +547,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.022167 seconds and 4 git commands to generate.