diff options
author | rathnor <rathnor> | 2003-05-04 23:38:06 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-05-04 23:38:06 (GMT) |
commit | 2ac0d82e451abd3cdc92df2a02c0da4eb8638ba1 (patch) | |
tree | acb6c82d00dd1258773c45ef539f38b2f093e191 /src/Workspace.cc | |
parent | 65bbfbe51b9d8531490708e83ba422c7dc53dc1a (diff) | |
download | fluxbox-2ac0d82e451abd3cdc92df2a02c0da4eb8638ba1.zip fluxbox-2ac0d82e451abd3cdc92df2a02c0da4eb8638ba1.tar.bz2 |
fix up focus problems
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r-- | src/Workspace.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc index d8b77a4..ae986ad 100644 --- a/src/Workspace.cc +++ b/src/Workspace.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: Workspace.cc,v 1.57 2003/05/04 13:07:17 rathnor Exp $ | 25 | // $Id: Workspace.cc,v 1.58 2003/05/04 23:38:06 rathnor Exp $ |
26 | 26 | ||
27 | #include "Workspace.hh" | 27 | #include "Workspace.hh" |
28 | 28 | ||
@@ -218,7 +218,7 @@ int Workspace::removeWindow(FluxboxWindow *w) { | |||
218 | 218 | ||
219 | if (w->isFocused()) { | 219 | if (w->isFocused()) { |
220 | if (screen.isSloppyFocus()) { | 220 | if (screen.isSloppyFocus()) { |
221 | Fluxbox::instance()->setFocusedWindow(0); // set focused window to none | 221 | Fluxbox::instance()->revertFocus(&screen); |
222 | } else if (w->isTransient() && w->getTransientFor() && | 222 | } else if (w->isTransient() && w->getTransientFor() && |
223 | w->getTransientFor()->isVisible()) { | 223 | w->getTransientFor()->isVisible()) { |
224 | w->getTransientFor()->setInputFocus(); | 224 | w->getTransientFor()->setInputFocus(); |
@@ -263,7 +263,7 @@ int Workspace::removeWindow(FluxboxWindow *w) { | |||
263 | } | 263 | } |
264 | */ | 264 | */ |
265 | if (top == 0|| !top->setInputFocus()) { | 265 | if (top == 0|| !top->setInputFocus()) { |
266 | Fluxbox::instance()->setFocusedWindow(0); // set focused window to none | 266 | Fluxbox::instance()->revertFocus(&screen); |
267 | } | 267 | } |
268 | } | 268 | } |
269 | } | 269 | } |