Age | Commit message (Collapse) | Author |
|
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.
|
|
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.
|
|
text in calls to message().
(cmd_select): Show the window list if there is no such window
number.
|
|
|
|
(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.
|
|
* manage.c (force_maximize): moved from actions.c
(maximize): likewise
(maximize_normal): likewise
(maximize_transient): likewise
* actions.c (cmd_maximize): New function
|
|
* actions.c: the user command "maximize" calls force_maximize
(force_maximize): New function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* list.h (sort_window_list_by_number): Added prototype
* list.c (swap_list_elements): Added
(sort_window_list_by_number): Added
* input.c (update_input_window): Added
(get_input): calls update_input_window in place of xlib calls.
(get_input): exits if realloc fails
* conf.h: Added INPUT_WINDOW_SIZE
* bar.c (update_window_names): loops through window list from head
to tail.
|
|
a screen_info param
|
|
|
|
(shell_command, switch_to, xterm_command): changed static char[100]s
to dynamic char *s, as get_input() now supports this
|
|
|
|
|
|
|
|
* manage.c (send_configure): Now sends the window's x,y,width,height
coordinates.
(set_state): Added
* events.c (map_request): Calls set_state when mapping an unmapped
window.
* actions.c (maximize_transient): takes an rp_window as the
argument. Removed code to handle void *data. Incremental resizing
only happens if the maximum size isn't set. Removed actual X
maximization code.
(maximize): Moved meat to maximize_normal().
|
|
|
|
no other window or there are no windows at all.
(next_window): display correct message when there is no other
window or there are no windows at all.
(key_actions): all number keys call goto_window_number with an
argument instead of a dedicated function.
* actions.c: replaced all user message strings with #define'd
messages.
* actions.h (goto_window): removed
(goto_window_0): removed
(goto_window_1): removed
(goto_window_2): removed
(goto_window_3): removed
(goto_window_4): removed
(goto_window_5): removed
(goto_window_6): removed
(goto_window_7): removed
(goto_window_8): removed
|
|
* ratpoison.h: includes communications.h
* main.c (send_restart, send_kill): Moved to communications.c
* list.c (get_mouse_root_position): Added
(add_to_window_list): Initialize new rp_window fields
(save_mouse_position): Added
(set_active_window): Added code to save and restore the position
of the mouse
* events.c (property_notify): Added code to listen for a
WM_TRANSIENT_FOR property change.
* data.h (struct rp_window): Added transient, transient_for, mouse_x, mouse_y.
* actions.c (maximize_transient): Added
(maximize): Added code to handle transient windows differently
* Makefile.am (ratpoison_SOURCES): Added communications.h and communications.c
|
|
(next_window): do not set active window when recursing.
|
|
|
|
* actions.c (show_clock): added
|
|
hints->height_inc intervals
* manage.c (manage): set the dimension members of the rp_window struct
|
|
keep track of state
(next_window): No longer uses rp_current_window to keep track of
state
* actions.c (maximize): Adhere to the window's Size Hints
|
|
|
|
C-t space to go to next window.
|
|
* events.c (configure_request): Now honours request, but then
maximizes it afterwards.
(configure_request): updates the rp_window's geometry fields
* manage.c (manage): commented out XMoveResizeWindow call
(send_configure): added
* actions.h (maximize): added prototype
* actions.c (maximize): added
|
|
* input.h: added prototype for keysym_to_string
* input.c (keysym_to_string): added
* bar.c (show_bar): update_window_names(s) is called whether the
bar is raised or not.
* conf.h: Added BAR_Y_PADDING BAR_X_PADDING
* list.c (goto_window_name): return success or failure
* list.h: updated prototype for goto_window_name
* events.c (handle_key): Added a message indicating an unbound
key.
* bar.c (display_msg_in_bar): added
(update_window_names): uses BAR_X_PADDING instead of `5'
(update_window_names): Updated BAR_PADDING to BAR_Y_PADDING
* input.c (cook_keycode): mod is now an usigned int
(read_key): Ignores modifier keys. Now returns keysym and
modifiers.
(get_input): Updated BAR_PADDING to BAR_Y_PADDING and
BAR_X_PADDING.
* events.c (handle_key): uses read_key instead of XMaskEvent to
read a key.
* actions.c (goto_window_number): window list is displayed on failure.
(bye): added
(switch_to): added
(execute_command): no longer seg faults when no windows exist.
|
|
* actions.c: key_actions now uses the #define'd keysyms from X11/keysym.h
* events.c (handle_key): calls cook_keycode() before processing the keysym.
* input.c (read_key): calls cook_keycode() before returning the keysym
(cook_keycode): added.
|
|
|
|
entered an empty string
(execute_command): added command
(key_actions): execute_command is called by pressing ':'
|
|
|
|
|