summaryrefslogtreecommitdiff
path: root/src/split.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-08-29 21:17:42 +0000
committersabetts <sabetts>2003-08-29 21:17:42 +0000
commite62c770a1ea5d89bb91d9b84ac4a4593bc32ef71 (patch)
tree26c9377cc6aba4cfe586dbfdafd18a204d14b7f3 /src/split.c
parent32fb412bee9fefb9d52395377ee9852f869598ec (diff)
downloadratpoison-e62c770a1ea5d89bb91d9b84ac4a4593bc32ef71.zip
* src/window.c (give_window_focus): use set_rp_window_focus.
* src/split.c (set_active_frame): use set_window_focus. (blank_frame): likewise * src/main.c (main): use set_window_focus. * src/input.c (get_more_input): use set_window_focus * src/globals.h (set_window_focus): new prototype (set_rp_window_focus): likewise * src/events.c (handle_key): use set_window_focus. * src/actions.c (cmd_resize): use set_window_focus. (cmd_license): likewise (cmd_help): likewise (cmd_tmpwm): likewise (cmd_fselect): likewise * src/globals.c (set_rp_window_focus): new function (set_window_focus): likewise
Diffstat (limited to 'src/split.c')
-rw-r--r--src/split.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/split.c b/src/split.c
index 3345523..dfda926 100644
--- a/src/split.c
+++ b/src/split.c
@@ -859,8 +859,7 @@ set_active_frame (rp_frame *frame)
focus. */
if(frame->win_number == EMPTY)
{
- XSetInputFocus (dpy, s->key_window,
- RevertToPointerRoot, CurrentTime);
+ set_window_focus (s->key_window);
}
}
@@ -883,8 +882,7 @@ blank_frame (rp_frame *frame)
update_bar (s);
/* Give the key window focus. */
- XSetInputFocus (dpy, current_screen()->key_window,
- RevertToPointerRoot, CurrentTime);
+ set_window_focus (current_screen()->key_window);
}
void