+void setup_action_movetoedge_south(Action *a)
+{
+ a->data.diraction.direction = OB_DIRECTION_SOUTH;
+}
+
+void setup_action_movetoedge_east(Action *a)
+{
+ a->data.diraction.direction = OB_DIRECTION_EAST;
+}
+
+void setup_action_movetoedge_west(Action *a)
+{
+ a->data.diraction.direction = OB_DIRECTION_WEST;
+}
+
+void setup_action_top_layer(Action *a)
+{
+ a->data.layer.layer = 1;
+}
+
+void setup_action_normal_layer(Action *a)
+{
+ a->data.layer.layer = 0;
+}
+
+void setup_action_bottom_layer(Action *a)
+{
+ a->data.layer.layer = -1;
+}
+
+ActionString actionstrings[] =
+{
+ {
+ "execute",
+ action_execute,
+ NULL
+ },
+ {
+ "directionalfocusnorth",
+ action_directional_focus,
+ setup_action_directional_focus_north
+ },
+ {
+ "directionalfocuseast",
+ action_directional_focus,
+ setup_action_directional_focus_east
+ },
+ {
+ "directionalfocussouth",
+ action_directional_focus,
+ setup_action_directional_focus_south
+ },
+ {
+ "directionalfocuswest",
+ action_directional_focus,
+ setup_action_directional_focus_west
+ },
+ {
+ "directionalfocusnortheast",
+ action_directional_focus,
+ setup_action_directional_focus_northeast
+ },
+ {
+ "directionalfocussoutheast",
+ action_directional_focus,
+ setup_action_directional_focus_southeast
+ },
+ {
+ "directionalfocussouthwest",
+ action_directional_focus,
+ setup_action_directional_focus_southwest
+ },
+ {
+ "directionalfocusnorthwest",
+ action_directional_focus,
+ setup_action_directional_focus_northwest
+ },
+ {
+ "focus",
+ action_focus,
+ NULL,
+ },
+ {
+ "unfocus",
+ action_unfocus,
+ NULL
+ },
+ {
+ "iconify",
+ action_iconify,
+ NULL
+ },
+ {
+ "raise",
+ action_raise,
+ NULL
+ },
+ {
+ "lower",
+ action_lower,
+ NULL
+ },
+ {
+ "close",
+ action_close,
+ NULL
+ },
+ {
+ "kill",
+ action_kill,
+ NULL
+ },
+ {
+ "shadelower",
+ action_shadelower,
+ NULL
+ },
+ {
+ "unshaderaise",
+ action_unshaderaise,
+ NULL
+ },
+ {
+ "shade",
+ action_shade,
+ NULL
+ },
+ {
+ "unshade",
+ action_unshade,
+ NULL
+ },
+ {
+ "toggleshade",
+ action_toggle_shade,
+ NULL
+ },
+ {
+ "toggleomnipresent",
+ action_toggle_omnipresent,
+ NULL
+ },
+ {
+ "moverelativehorz",
+ action_move_relative_horz,
+ NULL
+ },
+ {
+ "moverelativevert",
+ action_move_relative_vert,
+ NULL
+ },
+ {
+ "resizerelativehorz",
+ action_resize_relative_horz,
+ NULL
+ },
+ {
+ "resizerelativevert",
+ action_resize_relative_vert,
+ NULL
+ },
+ {
+ "maximizefull",
+ action_maximize_full,
+ NULL
+ },
+ {
+ "unmaximizefull",
+ action_unmaximize_full,
+ NULL
+ },
+ {
+ "togglemaximizefull",
+ action_toggle_maximize_full,
+ NULL
+ },
+ {
+ "maximizehorz",
+ action_maximize_horz,
+ NULL
+ },
+ {
+ "unmaximizehorz",
+ action_unmaximize_horz,
+ NULL
+ },
+ {
+ "togglemaximizehorz",
+ action_toggle_maximize_horz,
+ NULL
+ },
+ {
+ "maximizevert",
+ action_maximize_vert,
+ NULL
+ },
+ {
+ "unmaximizevert",
+ action_unmaximize_vert,
+ NULL
+ },
+ {
+ "togglemaximizevert",
+ action_toggle_maximize_vert,
+ NULL
+ },
+ {
+ "sendtodesktop",
+ action_send_to_desktop,
+ setup_action_send_to_desktop
+ },
+ {
+ "sendtodesktopright",
+ action_send_to_desktop_right,
+ setup_action_send_to_desktop_direction
+ },
+ {
+ "sendtodesktopleft",
+ action_send_to_desktop_left,
+ setup_action_send_to_desktop_direction
+ },
+ {
+ "sendtodesktopup",
+ action_send_to_desktop_up,
+ setup_action_send_to_desktop_direction
+ },
+ {
+ "sendtodesktopdown",
+ action_send_to_desktop_down,
+ setup_action_send_to_desktop_direction
+ },
+ {
+ "desktop",
+ action_desktop,
+ NULL
+ },
+ {
+ "desktopright",
+ action_desktop_right,
+ setup_action_desktop_direction
+ },
+ {
+ "desktopleft",
+ action_desktop_left,
+ setup_action_desktop_direction
+ },
+ {
+ "desktopup",
+ action_desktop_up,
+ setup_action_desktop_direction
+ },
+ {
+ "desktopdown",
+ action_desktop_down,
+ setup_action_desktop_direction
+ },
+ {
+ "toggledecorations",
+ action_toggle_decorations,
+ NULL
+ },
+ {
+ "keyboardmove",
+ action_moveresize,
+ setup_action_move_keyboard
+ },
+ {
+ "move",
+ action_moveresize,
+ setup_action_move
+ },
+ {
+ "resize",
+ action_moveresize,
+ setup_action_resize
+ },
+ {
+ "keyboardresize",
+ action_moveresize,
+ setup_action_resize_keyboard
+ },
+ {
+ "toggleshowdesktop",
+ action_toggle_show_desktop,
+ NULL
+ },
+ {
+ "showdesktop",
+ action_show_desktop,
+ NULL
+ },
+ {
+ "unshowdesktop",
+ action_unshow_desktop,
+ NULL
+ },
+ {
+ "restart",
+ action_restart,
+ NULL
+ },
+ {
+ "exit",
+ action_exit,
+ NULL
+ },
+ {
+ "showmenu",
+ action_showmenu,
+ NULL
+ },
+ {
+ "sendtotoplayer",
+ action_send_to_layer,
+ setup_action_top_layer
+ },
+ {
+ "togglealwaysontop",
+ action_toggle_layer,
+ setup_action_top_layer
+ },
+ {
+ "sendtonormallayer",
+ action_send_to_layer,
+ setup_action_normal_layer
+ },
+ {
+ "sendtobottomlayer",
+ action_send_to_layer,
+ setup_action_bottom_layer
+ },
+ {
+ "togglealwaysonbottom",
+ action_toggle_layer,
+ setup_action_bottom_layer
+ },
+ {
+ "nextwindowlinear",
+ action_cycle_windows,
+ setup_action_cycle_windows_linear_next
+ },
+ {
+ "previouswindowlinear",
+ action_cycle_windows,
+ setup_action_cycle_windows_linear_previous
+ },
+ {
+ "nextwindow",
+ action_cycle_windows,
+ setup_action_cycle_windows_next
+ },
+ {
+ "previouswindow",
+ action_cycle_windows,
+ setup_action_cycle_windows_previous
+ },
+ {
+ "movetoedgenorth",
+ action_movetoedge,
+ setup_action_movetoedge_north
+ },
+ {
+ "movetoedgesouth",
+ action_movetoedge,
+ setup_action_movetoedge_south
+ },
+ {
+ "movetoedgewest",
+ action_movetoedge,
+ setup_action_movetoedge_west
+ },
+ {
+ "movetoedgeeast",
+ action_movetoedge,
+ setup_action_movetoedge_east
+ },
+ {
+ NULL,
+ NULL,
+ NULL