summaryrefslogtreecommitdiff
path: root/openbox/actions/movetoedge.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2009-12-17 10:23:48 -0500
committerDana Jansens <danakj@orodu.net>2009-12-17 10:23:49 -0500
commitd18d9c9379e3387073fc9346e9857fdde077b985 (patch)
tree753dd70aec47f7fc23862c3180f9b483a37ab06a /openbox/actions/movetoedge.c
parent50d662681160c309ea86268c0d05794b87b75593 (diff)
Make it possible for an action name to choose whether it is interactive or not based on its options.
This way we can use the same name with options for an interactive action and a non-interactive action. Shorten the names of the ObActionsInteractive* functions to ObActionsI* Add a ObActionsIPreFunc that is called for interactive actions before the interactivity (key/mouse grab) is started. Add a ObActionsIPostFunc that is called for interactive actions after the interactiviti (key/mouse grab) has ended.
Diffstat (limited to 'openbox/actions/movetoedge.c')
-rw-r--r--openbox/actions/movetoedge.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/openbox/actions/movetoedge.c b/openbox/actions/movetoedge.c
index 51215fd2..e7384dad 100644
--- a/openbox/actions/movetoedge.c
+++ b/openbox/actions/movetoedge.c
@@ -19,16 +19,12 @@ static gpointer setup_west_func(xmlNodePtr node);
void action_movetoedge_startup(void)
{
- actions_register("MoveToEdge", setup_func, g_free, run_func, NULL, NULL);
+ actions_register("MoveToEdge", setup_func, g_free, run_func);
/* 3.4-compatibility */
- actions_register("MoveToEdgeNorth", setup_north_func, g_free, run_func,
- NULL, NULL);
- actions_register("MoveToEdgeSouth", setup_south_func, g_free, run_func,
- NULL, NULL);
- actions_register("MoveToEdgeEast", setup_east_func, g_free, run_func,
- NULL, NULL);
- actions_register("MoveToEdgeWest", setup_west_func, g_free, run_func,
- NULL, NULL);
+ actions_register("MoveToEdgeNorth", setup_north_func, g_free, run_func);
+ actions_register("MoveToEdgeSouth", setup_south_func, g_free, run_func);
+ actions_register("MoveToEdgeEast", setup_east_func, g_free, run_func);
+ actions_register("MoveToEdgeWest", setup_west_func, g_free, run_func);
}
static gpointer setup_func(xmlNodePtr node)