summaryrefslogtreecommitdiff
path: root/openbox/actions
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-22 14:09:57 +0000
committerDana Jansens <danakj@orodu.net>2007-06-22 14:09:57 +0000
commit6c5f6ed1f5d501c79977a55c0f2430ebdd32ef6c (patch)
treea597f90dd3de04e455a0942f79307dcb65428caa /openbox/actions
parentd642be361fde438e2b29b7374b4d6465f47ad9e9 (diff)
remove the activate action, make the focus action "activate" but not raise or unshade
Diffstat (limited to 'openbox/actions')
-rw-r--r--openbox/actions/all.c2
-rw-r--r--openbox/actions/all.h2
-rw-r--r--openbox/actions/focus.c (renamed from openbox/actions/activate.c)14
3 files changed, 5 insertions, 13 deletions
diff --git a/openbox/actions/all.c b/openbox/actions/all.c
index a65d76b5..71e439e6 100644
--- a/openbox/actions/all.c
+++ b/openbox/actions/all.c
@@ -10,8 +10,8 @@ void action_all_startup()
action_exit_startup();
action_restart_startup();
action_cyclewindows_startup();
- action_activate_startup();
action_breakchroot_startup();
action_close_startup();
action_move_startup();
+ action_focus_startup();
}
diff --git a/openbox/actions/all.h b/openbox/actions/all.h
index fa252492..2f2cf18a 100644
--- a/openbox/actions/all.h
+++ b/openbox/actions/all.h
@@ -11,9 +11,9 @@ void action_reconfigure_startup();
void action_exit_startup();
void action_restart_startup();
void action_cyclewindows_startup();
-void action_activate_startup();
void action_breakchroot_startup();
void action_close_startup();
void action_move_startup();
+void action_focus_startup();
#endif
diff --git a/openbox/actions/activate.c b/openbox/actions/focus.c
index c3f3f98e..9be6741c 100644
--- a/openbox/actions/activate.c
+++ b/openbox/actions/focus.c
@@ -5,17 +5,15 @@
typedef struct {
gboolean here;
- gboolean raise;
- gboolean unshade;
} Options;
static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node);
static void free_func(gpointer options);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_activate_startup()
+void action_focus_startup()
{
- actions_register("Activate",
+ actions_register("Focus",
setup_func,
free_func,
run_func,
@@ -28,15 +26,9 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node)
Options *o;
o = g_new0(Options, 1);
- o->raise = TRUE;
- o->unshade = TRUE;
if ((n = parse_find_node("here", node)))
o->here = parse_bool(doc, n);
- if ((n = parse_find_node("raise", node)))
- o->raise = parse_bool(doc, n);
- if ((n = parse_find_node("unshade", node)))
- o->unshade = parse_bool(doc, n);
return o;
}
@@ -57,7 +49,7 @@ static gboolean run_func(ObActionsData *data, gpointer options)
data->context != OB_FRAME_CONTEXT_CLIENT ||
data->context != OB_FRAME_CONTEXT_FRAME)
{
- client_activate(data->client, o->here, o->raise, o->unshade, TRUE);
+ client_activate(data->client, o->here, FALSE, FALSE, TRUE);
}
} else {
/* focus action on something other than a client, make keybindings