summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2001-04-05(initialize_default_keybindings): Add keybinding for :banish.rcyeske
2001-04-05add banish to user_commands.rcyeske
(cmd_banish): New function.
2001-04-01(maximize_normal): fixed maximizing problems forsabetts
windows with resize hints. (maximize_transient): likewise
2001-04-01* src/split.h (find_window_for_frame): new function prototypesabetts
(find_window_for_frame): likewise (find_window_for_frame): likewise (find_window_for_frame): likewise (find_window_for_frame): likewise * src/split.c (window_fits_in_frame): new function (find_window_for_frame): likewise (split_window): likewise (v_split_window): likewise (h_split_window): likewise (remove_all_frames): likewise (frame_is_below): likewise (frame_is_above): likewise (frame_is_left): likewise (frame_is_right): likewise (total_frame_area): likewise (num_frames): likewise (frames_overlap): likewise (frame_overlaps): likewise (remove_frame): likewise * src/ratpoison.h: includes "split.h" * src/manage.c (unmanage): calls free_window (maximize_transient): takes the window's frame into account (maximize_normal): likewise * src/list.h (find_window_prev_with_frame): new function prototype (find_window_next_with_frame): likewise (free_window): likewise * src/list.c (free_window): new function (add_to_window_list): initialize new window's frame to NULL. (find_window_prev): skips windows with frames (find_window_next): likewise (find_window_other): likewise (find_window_prev_with_frame): new function (find_window_next_with_frame): new function (set_active_window): returns if the specified window is already the current window. (set_active_window): If the new window has no frame it inherits the current window's frame. (set_active_window): maximize and raise the newly active window. * src/events.c (unmap_notify): handles window frames. (destroy_window): simplified * src/data.h (struct rp_window_frame): new struct (struct rp_window): add frame variable * src/conf.h (WINDOW_BORDER_WIDTH): set to 1 * src/actions.h (cmd_next_frame): new function prototype (cmd_prev_frame): likewise (cmd_h_split): likewise (cmd_v_split): likewise (cmd_only): likewise (cmd_remove): likewise * src/actions.c (initialize_default_keybindings): new default bindings for "split", "vsplit", "focus", "only", "remove" (user_commands): new user commands "split", "vsplit", "focus", "only", "remove" (cmd_prev_frame): new function (cmd_next_frame): likewise (cmd_h_split): likewise (cmd_v_split): likewise (cmd_only): likewise (cmd_remove): likewise * src/Makefile.am (ratpoison_SOURCES): new files split.c split.h
2001-03-29better command functionalitysabetts
2001-03-19* src/main.c (ratpoison_longopts): add --command to recognizedsabetts
command-line options. * src/communications.h (send_command): new function prototype * src/data.h (rp_command): new global variable * src/events.c (receive_command): new function (property_notify): handles rp_command Atoms * src/communications.c (send_command): new function * src/main.c (print_help): prints help for --command (main): handles --command command-line option
2001-03-18added comment concerning INPUT_WINDOW_SIZEsabetts
2001-03-14* src/events.c (delegate_event): calls focus_change on FocusOutsabetts
and FocusIn events. (focus_change): new function * src/list.c (add_to_window_list): add FocusChangeMask to the window's event mask.
2001-03-14* src/conf.h: replaced the silly c++ style comment aroundsabetts
HIDE_MOUSE with a REAL comment. * src/manage.c (update_window_information): updates the window's border width. * src/conf.h (WINDOW_BORDER_WIDTH): new constant * src/manage.c (maximize_normal): Set the border width to WINDOW_BORDER_WIDTH. takes the border width into account when calculating the position, width, and height. (maximize_transient): likewise (maximize): calls XSetWindowBorderWidth to set the window's border width. (force_maximize): likewise
2001-03-12merged rel-0-1-0 branchsabetts
2001-03-08* main.c (read_rc_file): Fix typo that was resulting in exhaustingrcyeske
all memory parsing the rc file.
2001-03-08(string_to_keysym): New function.rcyeske
(parse_keydesc): Call string_to_keysym.
2001-03-08(read_startup_files): Use PRINT_DEBUG to report failurercyeske
to load rc files.
2001-03-06formattingrcyeske
2001-03-06formattingrcyeske
2001-03-05remove silly C,M,A,S,H #defines and propagatercyeske
changes.
2001-03-05(update_window_names): Print a '+' for the last accessedrcyeske
window.
2001-03-04(cmd_bind): Do not pollute the message bar withrcyeske
chatter about the keybinding.
2001-03-03fixes to maximize_transientsabetts
2001-03-03fixes to maximize_normalsabetts
2001-03-02* main.c (print_version): updated copyright notice.sabetts
* doc/Makefile.am (EXTRA_DIST): man page comes with the distro.
2001-03-02* actions.c (initialize_default_keybindings): removed emacssabetts
binding. * Makefile.am (SUBDIRS): removed man/ * configure.in (AC_OUTPUT): removed man/Makefile removed references to emacs. * doc/Makefile.am (man_MANS): ratpoison.1 moved to doc/ * doc/ratpoison.texi: minor updates.
2001-03-02* ratpoison.h (xmalloc, xrealloc, fatal): Prototype.rcyeske
* main.c (xmalloc): Move here from sbuf.c. (xrealloc): Likewise. (fatal): Likewise. * number.c (find_empty_cell): Use xrealloc, remove error check. (init_numbers): Likewise. * manage.c (get_window_name): Likewise. * main.c (main): Likewise. * list.c (add_to_window_list): Likewise. (add_to_window_list): Likewise. * events.c (handle_key): Likewise. * input.c (keysym_to_string): Likewise. (get_more_input): Use xrealloc, remove error check. * main.c (read_rc_file): Take a file pointer rather than a filename. (read_startup_files): If ~/.ratpoisonrc is not readable try /etc/ratpoisonrc.
2001-03-02* actions.c (cmd_source): Open the file. Error report asrcyeske
appropriate. (cmd_windows): Call current_screen() to find the current screen. (cmd_clock): Show the clock even if no windows are open. (cmd_clock): Use xmalloc, remove error check. (initialize_default_keybindings): Use xmalloc. (cmd_bind): Use xmalloc. (cmd_rename): Use xmalloc, remove error check. (add_keybinding): Use xrealloc. (replace_keybinding): Use xrealloc. * actions.c: Use PRINT_DEBUG instead of fprintf. Put useful error text in calls to message(). (cmd_select): Show the window list if there is no such window number.
2001-03-02* actions.c (cmd_source): Open the file. Error report asrcyeske
appropriate. * main.c (read_rc_file): Take a file pointer rather than a filename. (read_startup_files): If ~/.ratpoisonrc is not readable try /etc/ratpoisonrc. * actions.c: Use PRINT_DEBUG instead of fprintf. Put useful error text in calls to message(). (cmd_select): Show the window list if there is no such window number.
2001-03-02Use PRINT_DEBUG instead of fprintf. Put useful errorrcyeske
text in calls to message(). (cmd_select): Show the window list if there is no such window number.
2001-03-01* manage.c (map_window): calls update_window_information.sabetts
* manage.h (map_window): new prototype. * events.c (new_window): calls update_window_information on new windows. (map_request): calls map_window on managed unmapped windows. (configure_request): removed commented out old crusty code. Updates window's structure based on what bits are set in the event's value_mask. Doesn't honour resize request. Windows are always maximized. (property_notify): doesn't call maximize when WM_NORMAL_HINTS are updated. * manage.c (manage): no longer maps the window, this code is in map_window. (map_window): new function (maximize): no longer sends a synthetic configure event. (scanwins): calls map_window on viewable windows. (update_window_information): renamed from manage. dependant code updated.
2001-02-28* actions.c (cmd_escape): updates the "other" command keybindingsabetts
2001-02-28* manage.h (ungrab_prefix_key): new prototypesabetts
(grab_prefix_key): likewise * manage.c (ungrab_prefix_key): new function * main.c (main): calls initialize_default_keybindings after init_window_list. * data.h (struct rp_action): key is of type KeySym. state is unsigned int. * conf.h (KEY_PREFIX): set to XK_t * actions.h (cmd_escape): new prototype * actions.c (cmd_escape): new function * data.h (struct key): move from actions.h (struct rp_key): rename from struct key. dependant code updated. (prefix_key): new global variable. code dependant on KEY_PREFIX and MODIFIER_PREFIX updated to use this. * actions.c: "maximize" user command calls cmd_maximize (initialize_default_keybindings): initializes prefix_key. Added "escape" command. * manage.c (force_maximize): moved from actions.c (maximize): likewise (maximize_normal): likewise (maximize_transient): likewise * actions.c (cmd_maximize): New function * main.c (handler): Prepends error message with "ERROR: ". Displays error in message bar. Returns 0. * events.c (destroy_window): sets rp_current_window to NULL when there are no more mapped windows. (destroy_window): calls set_current_window and find_window_other directly instead of cmd_other.
2001-02-28* actions.c: "maximize" user command calls cmd_maximizesabetts
* manage.c (force_maximize): moved from actions.c (maximize): likewise (maximize_normal): likewise (maximize_transient): likewise * actions.c (cmd_maximize): New function
2001-02-28* main.c (handler): Prepends error message with "ERROR: ".sabetts
Displays error in message bar. Returns 0. * events.c (destroy_window): sets rp_current_window to NULL when there are no more mapped windows. (destroy_window): calls set_current_window and find_window_other directly instead of cmd_other.
2001-02-27(save_mouse_position): stores the mouse position relativesabetts
to the root window. (set_active_window): warps the mouse relative to the root window.
2001-02-27* actions.h: prototype for force_maximize addedsabetts
* actions.c: the user command "maximize" calls force_maximize (force_maximize): New function
2001-02-26*** empty log message ***rcyeske
2001-02-26added cmd_sourcercyeske
2001-02-25removed themes.hrcyeske
2001-02-25s/fprintf/PRINT_DEBUG/rcyeske
2001-02-25removed dependancy on gnu extension: getline()rcyeske
2001-02-24added initialization file support "~/.ratpoisonrc"rcyeske
2001-02-24fix key rebindingrcyeske
2001-02-24remove themes supportrcyeske
2001-02-23* main.c (main): passes return value of find_window_other() tosabetts
set_active_window(). * list.h (remove_from_window_list): removed prototype (find_window_in_list): new prototype (append_to_list): likewise (insert_into_list): likewise (remove_from_list): likewise * list.c: propogated use of rp_unmapped_window_sentinel and rp_mapped_window_sentinel. (find_window_in_list): new function (find_window): calls find_window_in_list to search mapped and unmapped window lists. (remove_from_window_list): removed function (init_window_list): initialized sentinels (find_window_prev): searches only the mapped window list. (find_window_next): likewise (find_window_other): likewise (append_to_list): new function (insert_into_list): new function (remove_from_list): new function * events.c (unmap_notify): Searches only the mapped window list. moves the window from the unmapped window list to the mapped window list. * data.h: removed rp_window_head and rp_window_tail, updated dependant files. Added rp_mapped_window_sentinel and rp_unmapped_window_sentinel globals. * bar.c (update_window_names): loops only through mapped window list.
2001-02-23*** empty log message ***rcyeske
2001-02-22*** empty log message ***rcyeske
2001-02-22commented out broken sort stuffrcyeske
2001-02-22comment out broken sort_window_list_by_number callrcyeske
2001-02-22added preliminar keybinding supportrcyeske
2001-02-21fixed generate prefix stupidityrcyeske
2001-02-20added config.h.inrcyeske
2001-02-20removed key_actions table, replaced with set of functionsrcyeske