summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2006-01-05* src/conf.h (ASPECT_WINDOWS_ARE_TRANSIENTS): new definesabetts
* src/manage.c (window_is_transient): new function (maximize_normal): honour aspect ratio hint * src/window.c (update_window_gravity): use maxsize_gravity for windows with aspect hints. (set_active_window_body): call window_is_transient * src/split.c (cleanup_frame): call window_is_transient
2006-01-03* src/number.c (numset_add_num): store the ret val ofsabetts
numset_find_empty_cell in a variable and use it as an index into the numbers_taken array. * src/actions.c (cmd_curframe): return the frame number in non-interactive mode. * src/split.c (cleanup_frame): in the maxsize windows are transients check either the width or height must be less than the screen width/height (just like in windows.c).
2005-12-11* src/manage.c (withdraw_window): call rp_delete_window_hook hooksabetts
* src/globals.c: new hook rp_delete_window_hook
2005-11-05* src/events.c (handle_signals): xsync after hiding all windowssabetts
2005-11-05* src/manage.h (unhide_all_windows): new prototypesabetts
* src/manage.c (unhide_all_windows): new function. * src/events.c (handle_signals): unhide windows before switching to a new wm
2005-10-22(get_mouse_position): renamed fromsabetts
get_mouse_root_position. get pos relative to window.
2005-10-20* src/window.c: include unistd.hsabetts
(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.
2005-10-14(cmd_describekey): print the key name even when it's bound.sabetts
2005-08-24(cmd_addhook): remove erroneous call to free.sabetts
2005-06-13(edit_bindings): add C-h and C-msabetts
2005-06-11* src/main.c (clean_up): call del_frame_undo not pop_frame_undosabetts
* src/globals.h: new global prototype rp_frame_redos * src/globals.c: new global rp_frame_redos * src/actions.h: new command 'undo' (del_frame_undo): new prototype (pop_frame_undo): delete prototype * src/actions.c (init_user_commands): new command 'undo' (clear_frame_redos): new function (del_frame_undo): likewise (push_frame_undo): call del_frame_undo instead of pop_frame_undo. call clear_frame_redos. (pop_frame_list): new function (pop_frame_undo): returns the popped frame. all callers updated. (pop_frame_redo): new function (initialize_default_keybindings): bind undo to u and C-u, bind redo to U. (set_maxundos): call del_frame_undo instead of pop_frame_redo (cmd_redo): new function
2005-06-11remove the non-existant command, last.sabetts
2005-06-11(isdigit): new functionsabetts
(format_window_name): read a length argument and crop window names to that length. (get_window_list): length argument applies to %c and %a.
2005-06-11(isdigit): new functionsabetts
(format_window_name): read a length argument and crop window names to that length.
2005-06-11(cmd_tmpwm): stop waiting for the child if waitpidsabetts
produced an error.
2005-04-17* src/actions.h: new prototype compatsabetts
* src/actions.c (initialize_default_keybindings): move def* aliases to cmd_compat (cmd_compat): new function
2005-04-17* src/messages.h (MESSAGE_RAISE_TRANSIENT_GROUP): new definesabetts
(MESSAGE_RAISE_WINDOW_GROUP): likewise * src/group.h (groups_find_group_by_window): new prototype * src/group.c (groups_find_group_by_window): new function. * src/events.c (show_rudeness_raise_msg): new function (map_request): call show_rudeness_raise_msg (configure_request): likewise
2005-04-10(cmdret_new): malloc enough for the cmdret structure.sabetts
2005-04-09(cmd_help): likewise.sabetts
(cmd_gravity): likewise (cmd_getenv): likewise (cmd_fdump): likewise (cmd_groups): likewise (cmd_listhook): likewise (cmd_sfdump): likewise (cmd_sdump): likewise (cmd_describekey): likewise (cmd_prompt): likewise (cmd_getsel): likewise (cmd_unmanage): likewise (cmd_prev): likewise (cmd_prev_frame): likewise (cmd_next): likewise (cmd_next_frame): likewise (cmd_other): likewise (cmd_version): likewise (cmd_time): likewise (cmd_cnext): likewise (cmd_cprev): likewise (cmd_inext): likewise (cmd_iprev): likewise (cmd_cother): likewise (cmd_iother): likewise
2005-04-09(cmd_set): pass the string produced when no args are passid in tosabetts
cmdret_new using "%s".
2005-04-09(init_user_commands): add KEY argument to meta command.sabetts
(cmd_meta): optionally use the KEY passed in as an argument.
2005-03-05* src/ratpoison.h (check_child_procs): new prototypesabetts
(chld_handler): likewise (set_sig_handler): likewise * src/main.c (check_child_procs): new function (chld_handler): call check_child_procs (free_screen): unselect all events on the root window. * src/actions.c: include signal.h (spawn): don't prefix the command with exec. (set_wingravity): print the setting as a string. (set_transgravity): likewise (set_maxsizegravity): likewise (set_bargravity): likewise (set_font): likewise (set_winfmt): likewise (set_fgcolor): likewise (set_bgcolor): likewise (set_framesels): likewise (cmd_tmpwm): ungrab the keys for all windows before spawning the new wm. (cmd_tmpwm): disable the sigchld handler then enabled it after the wm returns. call check_child_procs.
2005-02-26(parse_args): properly check if we've hit the argsabetts
limit.
2005-02-22* src/main.c (read_startup_files): use xsprintf when generatingsabetts
path to ratpoisonrc. * src/input.c (get_more_input): Use HAVE_HISTORY to ifdef out history_reset. * src/actions.c (command): new variable, raw, which records whether to tell parse_args not to parse the last arg. (cmd_set): likewise
2005-02-10(parse_keydesc): return a cmdret error in thesabetts
event of an error and take a point to an rp_key as an argument. Fill this argument with the parsed key. (parse_keydesc): Don't accept the keysym if it doesn't map to a keycode. (cmdret_new): renamed from cmdret_new_printf. All callers updated. (cmdret_new_printf): remove function. (arg_free): free the key member.
2005-02-10(main): set the RATPOISON env. variable to the pathsabetts
to this executable.
2005-02-06(cmd_prompt): allow prompt to be runsabetts
interactively.
2005-02-06*** empty log message ***sabetts
2005-02-04*** empty log message ***sabetts
2005-02-01*** empty log message ***sabetts
2005-01-30(cmd_undefinekey): call XSync after ungrabbing and grabbing allsabetts
keys.
2005-01-30(cmd_escape): when the escape key doesn't have asabetts
modifier give the meta key a modifier.
2005-01-22* src/actions.h (argtype): add arg_RAWsabetts
* src/actions.c (init_user_commands): make unmanage'd argument optional when called non-interactively. (init_user_commands): "title" accepts 1 argument. (init_user_commands): "echo" and "putsel" take a raw argument. (read_arg): parse arg_RAW (parse_args): take a raw argument. gobble whitespace when we've hit nargs and raw is false. callers updated. (command): don't gobble whitespace after reading the command. set nargs when the argtype is arg_RAW, too. (cmd_set): set nargs when the argtype is arg_RAW, too.
2005-01-22(init_user_commands): make unmanage'd argumentsabetts
optional when called non-interactively. (init_user_commands): "title" accepts 1 argument.
2005-01-21(init_user_commands): fix unmanage command.sabetts
2005-01-17(frame_read): remove space in "(frame " string.sabetts
2005-01-15 * src/actions.c (spawn): Prepend cmd with exec.sabetts
2005-01-15 * actions.c (cmd_focusleft,cmd_focusright,cmd_focusup,cmd_focusdown): showsabetts
currectframe if movement not possible.
2005-01-15(frame_read): correctly determine if the inputsabetts
starts with "(frame ".
2005-01-15* src/actions.c (cmd_prev): return a cmdret*. same for errorsabetts
messages. (cmd_select): likewise. (command): use cmdret* to report when alias recursion has hit the limit. (cmd_resize): return a cmdret when num frames is < 2. (set_padding): return a cmdret*, not NULL. (cmd_nextscreen): likewise (cmd_prevscreen): likewise (cmd_addhook): likewise * src/actions.c (init_user_commands): set the last argument of the following commands to arg_REST: addhook, chdir, remhook, source, tmpwm, and prompt. (command): check list_size of head when checking for too many arguments. (cmd_set): raise error if set command was passed too many arguments.
2005-01-15(main): Report extra unparsed arguments.sabetts
2005-01-15(command): check list_size of head when checking for too manysabetts
arguments. (cmd_set): raise error if set command was passed too many arguments.
2005-01-15(init_user_commands): set the last argument of thesabetts
following commands to arg_REST: addhook, chdir, remhook, source, tmpwm, and prompt.
2005-01-15* src/actions.c (init_user_commands): change select's argument tosabetts
arg_REST.
2005-01-15* src/globals.h (rp_exec_newwm): new extern.sabetts
* src/globals.c (rp_exec_newwm): new global. * src/actions.c (cmd_newwm): set rp_exec_newwm to the new wm. * src/events.c (listen_for_events): call XSync after delegate_event. (handle_signals): exec newwm if its not NULL. Report X11 errors (moved from listen_for_events).
2005-01-15*** empty log message ***sabetts
2005-01-15(saved_command): Only define whe HAVE_HISTORY isrcyeske
defined.
2005-01-15* src/globals.h (RET_SUCCESS): set to 1sabetts
(RET_FAILURE): set to 0 * src/communications.c (receive_command_result) (receive_command_result): fix error deciding when to print to stderr.
2005-01-15(parse_args): remove erroneous pointer dereferencesabetts
of i when gobbling whitespace. (init_user_commands): set second argument to "alias" command to arg_REST. (init_user_commands): likewise for "set" (cmd_readkey): remove useless PRINT_DEBUG (cmd_set): pass an empty string to parse_args when the args[1] is NULL. (cmd_set): call the set function if the arg list size is 0.
2005-01-15(init_defaults): turn off warp by default.sabetts
doc updates