Make Unfocus do what the name says.
authorMikael Magnusson <mikachu@comhem.se>
Thu, 28 Feb 2008 18:43:07 +0000 (19:43 +0100)
committerMikael Magnusson <mikachu@gmail.com>
Sat, 11 Oct 2014 00:17:19 +0000 (02:17 +0200)
openbox/actions/unfocus.c

index 3db00ca361400ca780b2678f878632b1e0c8e19b..63863e5345ea32f121757532d82322f77d7a2f59 100644 (file)
@@ -11,7 +11,7 @@ void action_unfocus_startup(void)
 /* Always return FALSE because its not interactive */
 static gboolean run_func(ObActionsData *data, gpointer options)
 {
-    if (data->client && data->client == focus_client)
-        focus_fallback(FALSE, FALSE, TRUE, FALSE);
+    actions_interactive_cancel_act();
+    focus_nothing();
     return FALSE;
 }