Age | Commit message (Collapse) | Author |
|
unimplemented section.
|
|
* src/actions.c (cmd_license): new function
(user_commands): new command "license"
(initialize_default_keybindings): bind "license" to V and C-V
|
|
options.
|
|
* src/actions.c (wingravity_to_string): new function
(cmd_gravity): return the current value when data is NULL
(cmd_defwingravity): likewise
(cmd_deftransgravity): likewise
(cmd_defmaxsizegravity): likewise
(cmd_msgwait): likewise
(cmd_defbarloc): likewise
(cmd_defpadding): likewise
(cmd_defborder): likewise
(cmd_definputwidth): likewise
(cmd_defwaitcursor): likewise
(cmd_defwinfmt): likewise
(cmd_defwinname): likewise
(cmd_defbarpadding): likewise
(cmd_startup_message): likewise
(cmd_rudeness): likewise
|
|
(sbuf_printf): likewise
* src/sbuf.c (sbuf_printf_concat): new function
(sbuf_printf): likewise
* src/ratpoison.h: include stdarg.h
(xvsprintf): new prototype
(xsprintf): likewise
* src/main.c (xvsprintf): new function
(xsprintf): likewise
* src/bar.c: remove include of stdarg.h
(marked_message_printf): call xvsprintf.
|
|
(input_num_history_entries): likewise
(get_more_input): cycle through the input history.
* src/conf.h (INPUT_PREV_HISTORY_KEY): new define
(INPUT_PREV_HISTORY_MODIFIER): likewise
(INPUT_NEXT_HISTORY_KEY): likewise
(INPUT_NEXT_HISTORY_MODIFIER): likewise
(INPUT_MAX_HISTORY): likewise
* src/input.c (update_input_window): Draw the cursor in the right place.
|
|
|
|
* src/actions.h (cmd_defbarpadding): new prototype
* src/actions.c (user_commands): new command entry "defbarpadding"
(cmd_defbarpadding): new function
|
|
* src/main.c (rp_error_msg): new global variable
* src/events.c (get_event): If there is an X11 error message to
print, print it.
* src/main.c (handler): record the error in rp_error_msg
|
|
size of the window.
* src/actions.c (cmd_info): print "Transient" if the window is a
transient window.
|
|
inside its frame.
|
|
argument.
|
|
reading the key.
* src/list.c (give_window_focus): update rp_current_frame when
setting the window focus.
* src/main.c (main): scan for windows in a seperate pass after
initializing the screen structures.
(init_screen): build a display string for each screen.
(init_screen): remove the call to scanwins.
* src/manage.c (current_screen): return the current screen using
rp_current_screen.
* src/split.h (init_frame_lists): new function
* src/split.c (rp_window_frame_sentinel): remove.
(rp_current_frame): remove.
(frames_screen): new function
(maximize_frame): use the frame's screen to find out the width and
height of the display.
(create_initial_frame): take a pointer to a screen_info as an
argument.
(init_frame_lists): new function
(init_frame_list): take a pointer to a screen_info as an argument.
(find_last_frame): take a pointer to a screen_info as an argument.
* src/actions.c (spawn): Set the DISPLAY environment variable to
point to the current screen.
* src/data.h (struct screen_info): add display_string,
rp_window_frame_sentinel, rp_current_frame.
(rp_current_screen): new global
(rp_current_frame): Remove. Dependant code uses
screen_info.rp_current_frame.
|
|
|
|
* src/input.c (get_more_input): clear the window after it is
raised. Call XSync aftwards.
* src/conf.h (MAX_LINK_DEPTH): new define
* src/bar.c (marked_message): clear the window after it is
raised. Call XSync aftwards.
* src/actions.h (cmd_link): new prototype
* src/actions.c (user_command): new command 'link'
(find_command_by_keydesc): new function
(resolve_command_from_keydesc): likewise
(cmd_link): likewise
|
|
* src/split.c (update_last_access): new function
(find_last_frame): likewise
(split_frame): update the new frame's last_access field
(set_active_frame): update the new current frame's last_access field
* src/input.h (x11_mask_to_rp_mask): new prototype
(rp_mask_to_x11_mask): likewise
* src/input.c (x11_mask_to_rp_mask): new function
(rp_mask_to_x11_mask): likewise
* src/events.c (handle_key): convert X11 modifier masks to rp
modifier masks where appropriate.
* src/actions.h (cmd_focuslast): new prototype
* src/actions.c (initialize_default_keybindings): new keybinding
for "focuslast"
(cmd_focuslast): new function
(user_command): new command "focuslast"
|
|
(RP_CONTROL_MASK): new define. All code depending on the X11
modifier mask equivalent has been changed to use this where
appropriate.
(RP_META_MASK): likewise
(RP_ALT_MASK): likewise
(RP_SUPER_MASK): likewise
(RP_HYPER_MASK): likewise
|
|
message.
|
|
|
|
take up the space of the deleted frame overlaps the deleted frame
after the size change.
(remove_frame): More debug messages
|
|
grab the last_access field from the window.
|
|
vsnprintf of -1 properly.
|
|
|
|
C-t C-a binding to "time".
|
|
(find_frame_down): likewise
(find_frame_left): likewise
(find_frame_right): likewise
* src/split.c (find_frame_up): new function
(find_frame_down): likewise
(find_frame_left): likewise
(find_frame_right): likewise
* src/manage.c (move_window): use x11 gravity constants to denote
gravity.
* src/main.c (ratpoison_longopts): remove --kill and
--restart. Dependant code updated.
(init_defaults): use x11 gravity constants to denote gravity.
(main): only display the startup message if
defaults.startup_message is on.
* src/list.c (update_window_gravity): rename from
update_window_position. dependant code updated
* src/events.c (client_msg): don't test for restart or kill client
messages.
(client_msg): properly handle iconify requests.
(get_event): kill and restart the process here.
* src/data.h (TOP_LEFT): remove 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): rename field to position to gravity.
(struct rp_defaults): rename win_pos to win_gravity, trans_pos to
trans_gravity and maxsize_pos to maxsize_gravity.
(rp_restart): remove global variable
(rp_kill): likewise
* src/communications.h (send_kill): remove prototype
(send_restart): likewise
* src/communications.c (send_restart): remove function. obsolete.
(send_kill): likewise
* src/bar.c (bar_x): Use X11 gravity constants to denote location.
(bar_y): likewise
* src/actions.h (cmd_focusup): new prototype
(cmd_focusdown): likewise
(cmd_focusleft): likewise
(cmd_focusright): likewise
(cmd_startup_message): likewise
(cmd_restart): likewise
* src/actions.c (cmd_quit): just set the kill_signalled variable.
(parse_wingravity): use compass directions to describe the gravity
(parse_wingravity): renamed from parse_winpos. dependant code
updated.
(cmd_gravity): renamed from cmd_pos. dependant code updated.
(cmd_defwingravity): renamed from cmd_defwinpos. dependant code
updated.
(cmd_deftransgravity): renamed from cmd_deftranspos. dependant
code updated.
(cmd_defmaxsizegravity): renamed from cmd_defmaxsizepos. dependant
code updated.
(cmd_focusup): new function
(cmd_focusdown): likewise
(cmd_focusleft): likewise
(cmd_focusright): likewise
(cmd_restart): likewise
(cmd_startup_message): likewise
(user_commands): new commands "focusup" "focusdown" "focusright"
"focusleft" "startup_message" "restart".
|
|
not NULL. In this case return win's user_name field which is never
NULL.
|
|
|
|
(cmd_deftranspos): likewise
(cmd_defmaxsizepos): likewise
(cmd_defmaxsizepos): Use the correct command name in call to message.
(cmd_deftranspos): likewise
(cmd_defwinpos): likewise
|
|
|
|
(cmd_lastmsg): likewise
* src/bar.h (show_last_message): new prototype
* src/bar.c: new static globals last_msg, lash_mark_start, and last_mark_end.
(marked_message): Store the message in last_msg.
(show_last_message): new function
* src/actions.c (cmd_info): new function
(cmd_lastmsg): likewise
(user_commands): new commands "info" and "lastmsg"
(initialize_default_keybindings): Add key bindings for "info" and
"lastmsg".
|
|
* src/actions.c (cmd_unsetenv): new function
(user_commands): new "unsetenv" command
|
|
* src/main.c (xstrdup): new function. All calls to strdup replaced
with calls to xstrdup.
(main): Keep a list of all commands pasted in through the -c command-line option.
(main): execute all commands pasted in through the -c command-line option.
* src/actions.h (cmd_chdir): new prototype
* src/actions.c (cmd_clock): rename to cmd_time. Dependant code
updated.
(user_commands): rename "clock" command to "time".
(cmd_chdir): new function
(user_commands): new command "chdir".
|
|
updated.
(user_commands): rename "clock" command to "time".
|
|
(cmd_deffont): update the graphics contexts.
* src/actions.c (spawn): Only call setsid if it exists.
(spawn): Only call setpgid if it exists.
(spawn): if setpgid doesn't exist, try setpgrp.
|
|
like printf. Dependant code updated.
|
|
* src/actions.c (spawn): if setpgid doesn't exist, try setpgrp.
|
|
for the spawned process.
|
|
command and the argument list. Code that did this in specific
commands has been removed.
(cmd_setenv): new function
(cmd_meta): rename from cmd_generate. All dependant code updated.
(cmd_redisplay): rename from cmd_maximize. All dependant code
updated.
(initialize_default_keybindings): bind "redisplay" to C-t l and
C-t c-l.
(cmd_msgwait): rename from cmd_defbartimeout. All dependant code
updated.
|
|
|
|
command and the argument list. Code that did this in specific
commands has been removed.
* src/input.c (update_input_window): Draw a cheap-o cursor
|
|
|
|
no window has focus.
(blank_frame): give the key_window focus.
* src/main.c (init_screen): don't listen for keystrokes on the
root window.
(main): give the key_window focus in the case that no window has
focus.
|
|
bg_color to create the inverse GC.
* src/actions.h (cmd_deffgcolor): new prototype
(cmd_defbgcolor): new prototype
* src/actions.c (cmd_defbartimeout): merge the 2 ifs.
(cmd_defbartimeout): verify that the number is positive.
(cmd_defborder): likewise
(cmd_defwinname): gobble leading whitespace. Use strings as
arguments, not numbers.
(cmd_windows): Use the argument as a window format string in
non-interactive mode.
(cmd_windows): if data is NULL use the default format string.
(user_commands): new commands deffgcolor, defbgcolor.
(update_gc): new function
(cmd_deffgcolor): likewise
(cmd_defbgcolor): likewise
|
|
|
|
(cmd_defbartimeout): verify that the number is positive.
(cmd_defborder): likewise
(cmd_defwinname): gobble leading whitespace. Use strings as
arguments, not numbers.
|
|
(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.
|
|
|
|
then print ? instead of `question'.
* src/main.c (show_welcome_message): new function
(main): call show_welcome_message to show the welcome message.
|
|
* 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
|
|
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
|