From c7b7f18ea8e839f142688ad2f2fa3e3b128abfad Mon Sep 17 00:00:00 2001 From: sabetts Date: Thu, 20 Oct 2005 06:21:44 +0000 Subject: * src/window.c: include unistd.h (get_child_info): new function (add_to_window_list): get the window's client's pid if possible and assign the window the appropriate group and frame. (add_to_window_list): init intended_frame_number (save_mouse_position): save the position relative to the window (give_window_focus): restore the position relative to the window (set_active_window_body): put the window in the frame contained in intended_frame_number when appropriate. * src/screen.c (screen_find_frame_by_frame): new function (init_screen): add the net_supported atom to the root window. * src/main.c (main): init netwm atoms * src/group.c (groups_find_group_by_group): new function * src/globals.c (_net_wm_pid, _net_supported): new globals * src/data.h (struct rp_window): new field intended_frame_number. (struct rp_child_info): new fields group, frame, screen. * src/actions.c (spawn): call the command directly when new argument, raw, is non zero. all callers updated. (spawn): fill in the frame, group and screen for the child. --- src/actions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/actions.h') diff --git a/src/actions.h b/src/actions.h index 1ced405..da329d2 100644 --- a/src/actions.h +++ b/src/actions.h @@ -96,7 +96,7 @@ user_command struct list_head node; }; -int spawn(char *data); +int spawn(char *data, int raw); cmdret *command (int interactive, char *data); /* command function prototypes. */ -- cgit v1.2.3