summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2001-09-09(cmd_windows): if data is NULL use the default format string.sabetts
2001-09-09(cmd_defbartimeout): merge the 2 ifs.sabetts
(cmd_defbartimeout): verify that the number is positive. (cmd_defborder): likewise (cmd_defwinname): gobble leading whitespace. Use strings as arguments, not numbers.
2001-09-09* src/list.h (update_window_position): new prototypesabetts
(window_name): new prototype (get_window_list): update prototype * src/events.c (grab_rat): Don't wrap in an #ifdef (ungrab_rat): likewise (handle_key): record if the rat is grabbed and only ungrab it at the end if it was first grabbed. * src/actions.h (cmd_pos): new prototype (cmd_defwinpos): new prototype (cmd_deftranspos): new prototype (cmd_defmaxsizepos): new prototype (cmd_defbartimeout): new prototype (cmd_defbarloc): new prototype (cmd_deffont): new prototype (cmd_defpadding): new prototype (cmd_defborder): new prototype (cmd_definputwidth): new prototype (cmd_defwaitcursor): new prototype (cmd_defwinfmt): new prototype (cmd_defwinname): new prototype * src/messages.h (MESSAGE_FRAME_STRING): new message * src/manage.c (get_wmname): renamed from get_window_name (get_class_hints): new function (get_res_name): likewise (get_res_class): likewise (update_window_name): update the window's wm_name, res_name, and res_class fields. (update_window_name): calls functions get_wmname, get_res_name, get_res_class. (update_window_name): Don't crop the window name. (update_window_information): call update_window_position. (move_window): new function (maximize_transient): only set the window's width and height fields. (maximize_normal): likewise (maximize): call move_window (force_maximize): likewise (force_maximize): if the window has resize hints, resize it 1 resize unit. * src/main.c: new global variable, defaults. remove static variable, font, and move to defaults. Dependant code updated. (init_defaults): new function (main): call init_defaults. (init_screen): initialize the screen's fg_color to black and bg_color to white. * src/list.c (free_window): free the fields user_name, res_name, res_class, and wm_name. (update_window_position): new function (window_name): new function. Code accessing a window's name uses this function. All code updated. (add_to_window_list): call update_window_position (add_to_window_list): initialize wm_name, res_name, and res_class for the new window. (format_window_name): new function (get_window_list): Add parameter fmt. All callers updated. (get_window_list): call format_window_name. * src/conf.h: move Configuration variables to the global variable, defaults. Dependant code updated. * src/data.h (TOP_LEFT): new define (TOP_CENTER): likewise (TOP_RIGHT): likewise (CENTER_LEFT): likewise (CENTER_CENTER): likewise (CENTER_RIGHT): likewise (BOTTOM_LEFT): likewise (BOTTOM_CENTER): likewise (BOTTOM_RIGHT): likewise (struct rp_window): new fields user_name, wm_name, res_name, res_class, position. (struct rp_window): remove field name. Replaced with user_name. Dependant code updated. (struct screen_info): remove field font. dependant code updated. (struct screen_info): new fields fg_color, bg_color. (struct rp_defaults): new struct (defaults): new global * src/actions.c (parse_winpos): new function (cmd_pos): likewise (cmd_defwinpos): likewise (cmd_deftranspos): likewise (cmd_defmaxsizepos): likewise (cmd_defbartimeout): likewise (cmd_defbarloc): likewise (cmd_deffont): likewise (cmd_defpadding): likewise (cmd_defborder): likewise (cmd_definputwidth): likewise (cmd_defwaitcursor): likewise (cmd_defwinfmt): likewise (cmd_defwinname): likewise (user_commands): New commands defbarloc, defbartimeout, defborder, deffont, defintputwidth, defmaxsizepos, defpadding, deftranspos, defwaitcursor, defwinfmt, defwinname, defwinpos.
2001-09-06numlock, caps lock, and scroll lock are ignored for the prefix key.sabetts
2001-09-06* src/main.c (show_welcome_message): If the help key is bound to ?sabetts
then print ? instead of `question'. * src/main.c (show_welcome_message): new function (main): call show_welcome_message to show the welcome message.
2001-09-06* configure.in: check for getopt and getopt_long.sabetts
* src/getopt.c: wrap the whole file in an #ifndef HAVE_GETOPT_LONG * src/getopt1.c: wrap the whole file in an #ifndef HAVE_GETOPT_LONG
2001-09-05* src/messages.h (MESSAGE_WELCOME): The help keystroke is notsabetts
hardcoded. * src/main.c (show_welcome_message): new function (main): call show_welcome_message to show the welcome message. * src/actions.h (find_keybinding_by_action): new prototype * src/actions.c (key_actions): change to a static variable. (key_actions_last): likewise (key_actions_table_size): likewise (find_keybinding_by_action): new function
2001-09-04* src/actions.h (cmd_unbind): new prototypesabetts
* src/actions.c (find_keybinding): Change the first parameter's type to KeySym. Prototype updated. (add_keybinding): likewise (remove_keybinding): new function. (key_actions): new command 'unbind'. (key_actions): #if out the unimplemented bindings. (cmd_bind): Error messages are more accurate. (cmd_unbind): new function. (cmd_escape): update the "other" command before the "generate" command. (cmd_escape): When searching for the "other" and "generate" commands' keystrokes, verify that the located action is the right command.
2001-08-31maximize bug fixed. frame indicator is less intrusivesabetts
2001-08-29unhide bugsabetts
2001-08-27pad the date with spacessabetts
2001-08-27maximize bugsabetts
2001-08-27code cleanupsabetts
2001-08-27code cleanup, unmap_notify bug fixessabetts
2001-08-26raise request bug fixsabetts
2001-08-26frame indicator suppressed when there is only 1 framesabetts
2001-08-24added a user abort keysabetts
2001-08-23new rudeness commandsabetts
2001-08-23new code to handle transient windowssabetts
2001-08-23another transient window hiding bug fixsabetts
2001-08-20fixed maximize bug in clean_framesabetts
2001-08-19window switching flicker bug fixedsabetts
2001-08-19help screen fixupsabetts
2001-08-19fixed emacs20 maximize bugsabetts
2001-08-18fixed transient crashsabetts
2001-08-18commands can be called interactively and non-interactively. commands return ↵sabetts
a result string
2001-08-18window flicker problems fixedsabetts
2001-06-11* src/events.c (grab_rat): wrap in ifdefsabetts
(ungrab_rat): likewise (handle_key): only change the mouse icon if USE_WAITFORKEY_CURSOR is defined. * src/conf.h (USE_WAITFORKEY_CURSOR): new define
2001-06-11* src/actions.c (cmd_generate): return if there is no currentsabetts
window. * src/split.c (split_frame): empty frames can be split. * src/actions.c (initialize_default_keybindings): new bindings for "split" and "vsplit".
2001-06-11* src/main.c (rp_rat_bits): removesabetts
(rp_rat_mask_bits): remove include <X11/cursorfont.h> (sighandler): only increment kill_signalled (hup_handler): only increment hup_signalled (alrm_handler): only increment alarm_signalled (read_startup_files): use PRINT_ERROR for error messages. (init_rat_cursor): Use a standard X cursor for the screen's rat. * src/events.h (unmap_notify): remove prototype (delegate_event): likewise (key_press): likewise (keymapstate): likewise (map_request): likewise * src/events.c: includes <signal.h> <sys/time.h> and <error.h> (new_window): static function (unmap_notify): likewise (map_request): likewise (destroy_window): likewise (configure_notify): likewise (configure_request): likewise (key_press): likewise (property_notify): likewise (colormap_notify): likewise (delegate_event): likewise (get_event): new function (more_destroy_events): remove function (handle_events): call get_event. * src/data.h: rp_current_event is an XEvent dependant code updated. new globals alarm_signalled, kill_signalled, hup_signalled. * src/actions.c (initialize_default_keybindings): new bindings for "split" and "vsplit".
2001-06-06(unhide_transient_for): abort if the transient_forsabetts
window can't be found. (hide_transient_for): likewise
2001-06-05put back give_window_focussabetts
2001-06-05(parse_keydesc): return NULL if the keydesc is asabetts
'-'.
2001-06-05* src/manage.c (hide_window): ignore only StructureNotify events.sabetts
* src/data.h (WIN_EVENTS): Add StructureNotifyMask. * src/events.c (unmap_notify): ignore SubstructureNotify unmaps.
2001-06-02* src/list.c (unhide_transient_for): new functionsabetts
(hide_transient_for): likewise (set_active_window): print the name of the last and new windows. (set_active_window): unhide new window's transient_for. hide old window's transient_for. * src/list.c (add_to_window_list): use WIN_EVENTS in XSelectInput.
2001-06-02* src/manage.c (hide_window): ignore unmap_notify events whensabetts
unmapping the window. * src/list.c (add_to_window_list): use WIN_EVENTS in XSelectInput. * src/data.h (struct rp_window): remove iconizing field. remove code using iconizing. (WIN_EVENTS): new define
2001-06-01reverted last revisionsabetts
2001-06-01iconic window map_request properlysabetts
2001-06-01transients appear overtop of other windowssabetts
2001-05-24* src/events.c (colormap_notify): ignore badwindows whensabetts
retrieving and installing the colormap. * src/manage.c (withdraw_window): ignore badwindows during all Xlib calls.
2001-05-22 * src/actions.c (cmd_generate): only generate the event if theresabetts
is a current window.
2001-05-18* src/input.c (update_modifier_map): rename fromsabetts
init_modifier_map. all callers updated. prototype updated. * src/events.c (mapping_notify): new function (delegate_event): handle MappingNotify events.
2001-04-19* src/manage.c (unhide_window): map and raise the window.sabetts
2001-04-19* src/input.c (keysym_to_string): handles control, meta, alt,sabetts
hyper, and super modifiers. Returns full keysym names. * src/actions.c (parse_keydesc): parses control, meta, alt, hyper, and super modifiers. (cmd_clock): sets the last character in msg to 0.
2001-04-16accidental commented out stuffsabetts
2001-04-15(show_frame_indicator): contents ofsabetts
update_frame_indicator merged into here. (update_frame_indicator): remove function
2001-04-15* src/number.h (add_window_number): new prototypesabetts
* src/number.c (add_window_number): renamed from add_to_list. Dependant code updated. * src/messages.h (MESSAGE_WINDOW_INFORMATION): new define * src/list.h (print_window_information): new prototype * src/list.c (print_window_information): new function * src/actions.h (cmd_number): new prototype
2001-04-15* src/actions.c (cmd_clock): remove newline from date string.sabetts
2001-04-15* src/messages.h (MESSAGE_WELCOME): new definesabetts
* src/manage.c (scanwins): ignore the help window (hide_window): increment window's iconizing variable * src/main.c (main): display welcoming message (init_screen): create the help window (init_screen): don't map the frame indicator window (clean_up): destroy the help window * src/list.c (add_to_window_list): initialize iconizing to 0 * src/events.c (new_window): skip help_window (unmap_notify): skip normal processing if the event is from iconizing the window. (unmap_notify): clean up the window's frame if it is being withdrawn. * src/data.h (struct screen_info): new variable help_window * src/bar.c (update_window_names): only print the window list if the bar is already displaying the window list. * src/actions.h (cmd_help): new prototype (cmd_quit): likewise * src/actions.c (initialize_default_keybindings): new keybinding for "help" (cmd_quit): new function (cmd_help): likewise
2001-04-13* src/actions.c (cmd_clock): doesn't allocate memory. displays thesabetts
date.