From dce6247e693a4880b1f77252460d445825efc13c Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Fri, 4 Aug 2006 19:56:42 +0000 Subject: really fix focus_last? --- openbox/client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'openbox/client.c') diff --git a/openbox/client.c b/openbox/client.c index fdc8c108..d4759bb9 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -2833,13 +2833,15 @@ gboolean client_focus(ObClient *self) return TRUE; } +/* Used when the current client is closed, focus_last will then prevent + * focus from going to the mouse pointer */ void client_unfocus(ObClient *self) { if (focus_client == self) { #ifdef DEBUG_FOCUS ob_debug("client_unfocus for %lx\n", self->window); #endif - focus_fallback(OB_FOCUS_FALLBACK_UNFOCUSING); + focus_fallback(OB_FOCUS_FALLBACK_CLOSED); } } -- cgit v1.2.3