]> icculus.org git repositories - dana/openbox.git/blob - openbox/actions/unfocus.c
Use ObConfigValue to parse gravity coords, remove parse special functions from config...
[dana/openbox.git] / openbox / actions / unfocus.c
1 #include "openbox/action.h"
2 #include "openbox/action_list_run.h"
3 #include "openbox/client_set.h"
4 #include "openbox/focus.h"
5
6 static gboolean run_func(const ObClientSet *set,
7                          const ObActionListRun *data, gpointer options);
8
9 void action_unfocus_startup(void)
10 {
11     action_register("Unfocus", OB_ACTION_DEFAULT_FILTER_SINGLE,
12                     NULL, NULL, run_func);
13 }
14
15 /* Always return FALSE because its not interactive */
16 static gboolean run_func(const ObClientSet *set,
17                          const ObActionListRun *data, gpointer options)
18 {
19     if (focus_client && client_set_contains(set, focus_client))
20         focus_fallback(FALSE, FALSE, TRUE, FALSE);
21     return FALSE;
22 }