aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 4c5f85e..93d1ddd 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.146 2003/05/07 13:50:41 rathnor Exp $ 25// $Id: Screen.cc,v 1.147 2003/05/07 16:21:25 rathnor Exp $
26 26
27 27
28#include "Screen.hh" 28#include "Screen.hh"
@@ -973,8 +973,14 @@ void BScreen::removeClient(WinClient &client) {
973 focused_list.remove(&client); 973 focused_list.remove(&client);
974 if (cyc == &client) { 974 if (cyc == &client) {
975 cycling_window = focused_list.end(); 975 cycling_window = focused_list.end();
976 } else if (focused && &focused->winClient() == &client) 976 } else if (focused && &focused->winClient() == &client) {
977 Fluxbox::instance()->revertFocus(&focused->getScreen()); 977 // if we are focused, then give our focus to our transient parent
978 // or revert normally
979 if (client.transientFor() && client.transientFor()->fbwindow())
980 client.transientFor()->fbwindow()->setInputFocus();
981 else
982 Fluxbox::instance()->revertFocus(&focused->getScreen());
983 }
978} 984}
979 985
980FluxboxWindow *BScreen::getIcon(unsigned int index) { 986FluxboxWindow *BScreen::getIcon(unsigned int index) {