aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-05-11 23:44:09 (GMT)
committerrathnor <rathnor>2003-05-11 23:44:09 (GMT)
commit99b6dc4e5df2b9a8344de7cf1da102c9245cb014 (patch)
tree4c72996ab90ae98461204c8b7c0e2146de59a8e7 /src/fluxbox.cc
parent7037b9ca2cdf9e03a7a54ef45d6d6f7a601725fd (diff)
downloadfluxbox-99b6dc4e5df2b9a8344de7cf1da102c9245cb014.zip
fluxbox-99b6dc4e5df2b9a8344de7cf1da102c9245cb014.tar.bz2
fix up various focus-related issues
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc8
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: