diff options
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r-- | src/fluxbox.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 2793670..b77bd73 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.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: fluxbox.cc,v 1.138 2003/05/11 22:19:17 fluxgen Exp $ | 25 | // $Id: fluxbox.cc,v 1.139 2003/05/11 23:44:09 rathnor Exp $ |
26 | 26 | ||
27 | #include "fluxbox.hh" | 27 | #include "fluxbox.hh" |
28 | 28 | ||
@@ -2382,9 +2382,9 @@ void Fluxbox::revertFocus(BScreen &screen) { | |||
2382 | // Fluxbox::FocusModel = sloppy, click, whatever | 2382 | // Fluxbox::FocusModel = sloppy, click, whatever |
2383 | WinClient *next_focus = screen.getLastFocusedWindow(screen.getCurrentWorkspaceID()); | 2383 | WinClient *next_focus = screen.getLastFocusedWindow(screen.getCurrentWorkspaceID()); |
2384 | 2384 | ||
2385 | if (next_focus && next_focus->fbwindow()) { | 2385 | // if setting focus fails, or isn't possible, fallback correctly |
2386 | setFocusedWindow(next_focus->fbwindow()); | 2386 | if (!(next_focus && next_focus->fbwindow() && |
2387 | } else { | 2387 | next_focus->fbwindow()->setCurrentClient(*next_focus, true))) { |
2388 | setFocusedWindow(0); // so we don't get dangling m_focused_window pointer | 2388 | setFocusedWindow(0); // so we don't get dangling m_focused_window pointer |
2389 | switch (screen.getFocusModel()) { | 2389 | switch (screen.getFocusModel()) { |
2390 | case SLOPPYFOCUS: | 2390 | case SLOPPYFOCUS: |