diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-23 13:34:06 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-23 13:34:06 (GMT) |
commit | 10f769f7fc1766a647a063f4204d7c5b0b0e45ba (patch) | |
tree | 61982ee470d2c4f2c4277eb173f99c3e65251f07 /src/WinClient.cc | |
parent | 6875a611dca24054ef4a116a51bd70eb98bcf0b8 (diff) | |
download | fluxbox-10f769f7fc1766a647a063f4204d7c5b0b0e45ba.zip fluxbox-10f769f7fc1766a647a063f4204d7c5b0b0e45ba.tar.bz2 |
when a transient dies, revert focus to its parent
Diffstat (limited to 'src/WinClient.cc')
-rw-r--r-- | src/WinClient.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/WinClient.cc b/src/WinClient.cc index bded700..aa8c6ed 100644 --- a/src/WinClient.cc +++ b/src/WinClient.cc | |||
@@ -126,7 +126,6 @@ WinClient::~WinClient() { | |||
126 | transient_for->transientList().remove(this); | 126 | transient_for->transientList().remove(this); |
127 | if (m_modal) | 127 | if (m_modal) |
128 | transient_for->removeModal(); | 128 | transient_for->removeModal(); |
129 | transient_for = 0; | ||
130 | } | 129 | } |
131 | 130 | ||
132 | while (!transients.empty()) { | 131 | while (!transients.empty()) { |
@@ -141,13 +140,13 @@ WinClient::~WinClient() { | |||
141 | // this takes care of any focus issues | 140 | // this takes care of any focus issues |
142 | m_diesig.notify(); | 141 | m_diesig.notify(); |
143 | 142 | ||
144 | Fluxbox *fluxbox = Fluxbox::instance(); | ||
145 | |||
146 | // This fixes issue 1 (see WinClient.hh): | 143 | // This fixes issue 1 (see WinClient.hh): |
147 | // If transients die before the transient_for is created | 144 | // If transients die before the transient_for is created |
145 | transient_for = 0; | ||
148 | removeTransientFromWaitingList(); | 146 | removeTransientFromWaitingList(); |
149 | s_transient_wait.erase(window()); | 147 | s_transient_wait.erase(window()); |
150 | 148 | ||
149 | Fluxbox *fluxbox = Fluxbox::instance(); | ||
151 | 150 | ||
152 | if (window_group != 0) { | 151 | if (window_group != 0) { |
153 | fluxbox->removeGroupSearch(window_group); | 152 | fluxbox->removeGroupSearch(window_group); |