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 /src/actions.c | |
parent | 533435878f94142d58ef219a5cc7f4c6691202e5 (diff) | |
download | ratpoison-28234daefda17464ba597a90450bf23c684b8add.zip |
add banish to user_commands.
(cmd_banish): New function.
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 12 |
1 files changed, 12 insertions, 0 deletions
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); +} |