diff options
author | rathnor <rathnor> | 2003-05-07 16:21:26 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-05-07 16:21:26 (GMT) |
commit | d63bf127ad6391f3e8408ddfd0ba79c4841a1ecf (patch) | |
tree | 5888bcda58581a3c8f94bc4bac4197d585c0b459 /src/Screen.cc | |
parent | de68c88ed8ff8c7a887495a74de004f9da7f56df (diff) | |
download | fluxbox_pavel-d63bf127ad6391f3e8408ddfd0ba79c4841a1ecf.zip fluxbox_pavel-d63bf127ad6391f3e8408ddfd0ba79c4841a1ecf.tar.bz2 |
transient fixes by making them WinClients
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 12 |
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 | ||
980 | FluxboxWindow *BScreen::getIcon(unsigned int index) { | 986 | FluxboxWindow *BScreen::getIcon(unsigned int index) { |