togglefullscreen action from Joaquin Aguirrezabalaga
This commit is contained in:
parent
ebc21270f1
commit
aa88bc9918
3 changed files with 16 additions and 0 deletions
|
@ -349,6 +349,7 @@
|
|||
<xs:enumeration value="ToggleAlwaysOnBottom"/>
|
||||
<xs:enumeration value="ToggleAlwaysOnTop"/>
|
||||
<xs:enumeration value="ToggleDecorations"/>
|
||||
<xs:enumeration value="ToggleFullscreen"/>
|
||||
<xs:enumeration value="ToggleMaximizeFull"/>
|
||||
<xs:enumeration value="ToggleMaximizeHorz"/>
|
||||
<xs:enumeration value="ToggleMaximizeVert"/>
|
||||
|
|
|
@ -591,6 +591,11 @@ ActionString actionstrings[] =
|
|||
action_toggle_maximize_vert,
|
||||
setup_client_action
|
||||
},
|
||||
{
|
||||
"togglefullscreen",
|
||||
action_toggle_fullscreen,
|
||||
setup_client_action
|
||||
},
|
||||
{
|
||||
"sendtodesktop",
|
||||
action_send_to_desktop,
|
||||
|
@ -1234,6 +1239,14 @@ void action_toggle_maximize_vert(union ActionData *data)
|
|||
client_action_end(data);
|
||||
}
|
||||
|
||||
void action_toggle_fullscreen(union ActionData *data)
|
||||
{
|
||||
client_action_start(data);
|
||||
client_fullscreen(data->client.any.c,
|
||||
!(data->client.any.c->fullscreen), TRUE);
|
||||
client_action_end(data);
|
||||
}
|
||||
|
||||
void action_send_to_desktop(union ActionData *data)
|
||||
{
|
||||
ObClient *c = data->sendto.any.c;
|
||||
|
|
|
@ -271,6 +271,8 @@ void action_maximize_vert(union ActionData *data);
|
|||
void action_unmaximize_vert(union ActionData *data);
|
||||
/* ClientAction */
|
||||
void action_toggle_maximize_vert(union ActionData *data);
|
||||
/* ClientAction */
|
||||
void action_toggle_fullscreen(union ActionData *data);
|
||||
/* SendToDesktop */
|
||||
void action_send_to_desktop(union ActionData *data);
|
||||
/* SendToDesktopDirection */
|
||||
|
|
Loading…
Reference in a new issue