diff options
author | rcyeske <rcyeske> | 2001-04-05 01:32:51 +0000 |
---|---|---|
committer | rcyeske <rcyeske> | 2001-04-05 01:32:51 +0000 |
commit | 28234daefda17464ba597a90450bf23c684b8add (patch) | |
tree | 78cfd86f4a2aec3fecb11ae68a1c18bc0c3bad47 | |
parent | 533435878f94142d58ef219a5cc7f4c6691202e5 (diff) | |
download | ratpoison-28234daefda17464ba597a90450bf23c684b8add.zip |
add banish to user_commands.
(cmd_banish): New function.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/actions.c | 12 | ||||
-rw-r--r-- | src/actions.h | 1 |
3 files changed, 18 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2001-04-04 Ryan Yeske <rcyeske@cut.hotdog.tmp> + + * src/actions.c: add banish to user_commands. + (cmd_banish): New function. + 2001-04-01 shawn <sabetts@diggin.lamenet.tmp> * src/manage.c (maximize_normal): fixed maximizing problems for diff --git a/src/actions.c b/src/actions.c index f7f3163..1ea65ad 100644 --- a/src/actions.c +++ b/src/actions.c @@ -159,6 +159,7 @@ user_command user_commands[] = {"focus", cmd_next_frame, arg_VOID}, {"only", cmd_only, arg_VOID}, {"remove", cmd_remove, arg_VOID}, + {"banish", cmd_banish, arg_VOID}, /* the following screen commands may or may not be able to be implemented. See the screen documentation for what should be @@ -847,3 +848,14 @@ cmd_remove (void *data) set_active_window (find_window_other()); } } + +/* banish the rat pointer */ +void +cmd_banish (void *data) +{ + screen_info *s; + + s = current_screen (); + + XWarpPointer (dpy, None, s->root, 0, 0, 0, 0, s->root_attr.width - 2, s->root_attr.height - 2); +} diff --git a/src/actions.h b/src/actions.h index 3438685..191b825 100644 --- a/src/actions.h +++ b/src/actions.h @@ -69,6 +69,7 @@ void cmd_h_split (void *data); void cmd_v_split (void *data); void cmd_only (void *data); void cmd_remove (void *data); +void cmd_banish (void *data); /* void cmd_xterm (void *data); */ |