add an 'activate' action
This commit is contained in:
parent
35ed95fe18
commit
99d0b71677
2 changed files with 13 additions and 0 deletions
|
@ -314,6 +314,11 @@ ActionString actionstrings[] =
|
||||||
action_directional_focus,
|
action_directional_focus,
|
||||||
setup_action_directional_focus_northwest
|
setup_action_directional_focus_northwest
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"activate",
|
||||||
|
action_activate,
|
||||||
|
NULL,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"focus",
|
"focus",
|
||||||
action_focus,
|
action_focus,
|
||||||
|
@ -735,6 +740,12 @@ void action_execute(union ActionData *data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void action_activate(union ActionData *data)
|
||||||
|
{
|
||||||
|
if (data->client.c)
|
||||||
|
client_activate(data->client.c);
|
||||||
|
}
|
||||||
|
|
||||||
void action_focus(union ActionData *data)
|
void action_focus(union ActionData *data)
|
||||||
{
|
{
|
||||||
if (data->client.c)
|
if (data->client.c)
|
||||||
|
|
|
@ -136,6 +136,8 @@ void action_free(ObAction *a);
|
||||||
/* Execute */
|
/* Execute */
|
||||||
void action_execute(union ActionData *data);
|
void action_execute(union ActionData *data);
|
||||||
/* ClientAction */
|
/* ClientAction */
|
||||||
|
void action_activate(union ActionData *data);
|
||||||
|
/* ClientAction */
|
||||||
void action_focus(union ActionData *data);
|
void action_focus(union ActionData *data);
|
||||||
/* ClientAction */
|
/* ClientAction */
|
||||||
void action_unfocus(union ActionData *data);
|
void action_unfocus(union ActionData *data);
|
||||||
|
|
Loading…
Reference in a new issue