aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-05-07 13:50:41 (GMT)
committerrathnor <rathnor>2003-05-07 13:50:41 (GMT)
commitde68c88ed8ff8c7a887495a74de004f9da7f56df (patch)
tree099f35e3e2c9180ca14788f4da79f680833c862a /src/Screen.cc
parent31c77912d83144f265bc9842c09f89f0e8dc99ac (diff)
downloadfluxbox-de68c88ed8ff8c7a887495a74de004f9da7f56df.zip
fluxbox-de68c88ed8ff8c7a887495a74de004f9da7f56df.tar.bz2
minor focus twiddle
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 2dfe90b..4c5f85e 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.145 2003/05/07 11:36:43 fluxgen Exp $ 25// $Id: Screen.cc,v 1.146 2003/05/07 13:50:41 rathnor Exp $
26 26
27 27
28#include "Screen.hh" 28#include "Screen.hh"
@@ -969,10 +969,12 @@ void BScreen::removeWindow(FluxboxWindow *win) {
969 969
970void BScreen::removeClient(WinClient &client) { 970void BScreen::removeClient(WinClient &client) {
971 WinClient *cyc = *cycling_window; 971 WinClient *cyc = *cycling_window;
972 FluxboxWindow *focused = Fluxbox::instance()->getFocusedWindow();
972 focused_list.remove(&client); 973 focused_list.remove(&client);
973 if (cyc == &client) { 974 if (cyc == &client) {
974 cycling_window = focused_list.end(); 975 cycling_window = focused_list.end();
975 } 976 } else if (focused && &focused->winClient() == &client)
977 Fluxbox::instance()->revertFocus(&focused->getScreen());
976} 978}
977 979
978FluxboxWindow *BScreen::getIcon(unsigned int index) { 980FluxboxWindow *BScreen::getIcon(unsigned int index) {