X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Fdock.c;fp=openbox%2Factions%2Fdock.c;h=a1f6837376fe72c71ba4020611fd2fa75dc13c8a;hb=1ffc0021325e30db7bb7f8b2a17ca7f5546b3324;hp=0000000000000000000000000000000000000000;hpb=48d36cd587e70b9680f65811d08038496a9ccc12;p=chaz%2Fopenbox diff --git a/openbox/actions/dock.c b/openbox/actions/dock.c new file mode 100644 index 00000000..a1f68373 --- /dev/null +++ b/openbox/actions/dock.c @@ -0,0 +1,38 @@ +#include "openbox/actions.h" +#include "openbox/stacking.h" +#include "openbox/window.h" +#include "openbox/dock.h" + +static gboolean raise_func(ObActionsData *data, gpointer options); +static gboolean lower_func(ObActionsData *data, gpointer options); + +void action_dock_startup(void) +{ + actions_register("RaiseDock", + NULL, NULL, + raise_func); + actions_register("LowerDock", + NULL, NULL, + lower_func); +} + +/* Always return FALSE because its not interactive */ +static gboolean raise_func(ObActionsData *data, gpointer options) +{ + actions_client_move(data, TRUE); + dock_raise_dock(); + actions_client_move(data, FALSE); + + return FALSE; +} + +/* Always return FALSE because its not interactive */ +static gboolean lower_func(ObActionsData *data, gpointer options) +{ + actions_client_move(data, TRUE); + dock_lower_dock(); + actions_client_move(data, FALSE); + + return FALSE; +} +