summaryrefslogtreecommitdiff
path: root/src/actions.c
AgeCommit message (Collapse)Author
2009-04-13Add ratinfo, ratrelinfo, and banishrel commandsRob Paisley
2009-01-16Move screen activation code to new (de)activate_screen functions,Bernhard R. Link
making sure _NET atoms are reset after tmpwm and deleted when exiting.
2008-11-01in cmd_tmpwm wait for a second if it failed to re-select the root events.Shawn
2008-11-01fix (i hope) the tmpwm race condition and the bug that sometimes keys don't ↵Shawn
work after tmpwm the race condition is fixed by spinning in a loop with a special error handler until it is confirmed that the root event selections were successfully. Existing windows don't get their top level keys grabbed, so after the windows are synced up, grab the top level keys on all windows.
2008-10-22make history expansion an option (switched off by default)Bernhard R. Link
2008-10-22add 'set historysize' and 'set historycompaction' (defaulting to true) to ↵Bernhard R. Link
compact history
2008-10-22move all HAVE_HISTORY into history.cBernhard R. Link
2008-10-22SHELLCMD history only shows execute arguments, things to execute are stored ↵Bernhard R. Link
as in history as execute commands
2008-10-22define different history types and use themBernhard R. Link
(implementation does not separate them yet, though)
2008-10-22return the correct value when set_barinpadding is called without argumentsAntti Nykänen
Currently, when you execute C-t : set barinpadding, you actually get the bar's border width. This patch fixes that.
2008-10-19disallow duplicate group namesAli Gholami Rudi
2008-10-12don't delete the last groupAli Gholami Rudi
Currently gdelete deletes the last group and creates a new empty group. This patch changes gdelete to show a message, instead.
2008-10-12change grename arg type to arg_RESTShawn
2008-10-12add grename commandAli Gholami Rudi
2008-10-11cmd_swap checks that both frames are on the same screenBernhard R. Link
2008-10-10mark the last group in cmd_groupsShawn
2008-10-10add gother commandAli Gholami Rudi
2008-10-10src/actions.c: fix memory leak in cmd_groups()Ali Gholami Rudi
2008-10-10bind nextscreen/prevscreen to C-t N and C-t PShawn
2008-10-10allow window border color to be set seperately for focused and unfocused windowsKipling Inscore
2008-06-22Mark command arguments as arg_COMMANDBernhard R. Link
2008-05-29don't grab the key if the keysym doesn't map to a keycodeShawn Betts
Also, remove the restriction that a keysym must have a keycode in order to be bound.
2008-05-25properly indent calls to rp_text_width and rp_draw_stringShawn
2008-05-24fix whitespace errors in xft patchShawn
2008-05-24Add xft supportMidare Kiyura
2008-02-11Merge branch 'master' of sabetts@git.sv.gnu.org:/srv/git/ratpoisonShawn Betts
2008-02-11ifdef out Xtst library callsShawn Betts
2008-02-06Change the way input is readShawn
Before rp used xgrabkeyboard to read a key. Instead, the keyboard is frozen when a top level key is read. Then when rp reads a key it first sets the input focus to a suitable location such as key_window or input_window, then thaws the keyboard and waits for a keypress. When a key is pressed the keyboard is frozen again and the process repeats until ratpoison is done reading input. At that point the keyboard is thawed in a way that future keystrokes do not refreeze the keyboard.
2007-07-18free more stuff at termination time to make valgrind output better readablebrl
2007-05-17* src/actions.c (cmd_windows): free buffer to close memory holebrl
2007-03-08* src/split.c (set_active_frame): call switch_frame hooksabetts
(show_frame_indicator): only show frame indicator (set_active_frame): new arg force_indicator. all callers updated. (show_frame_indicator): new arg force. all callers updated. * src/main.c (init_defaults): init bar_in_padding * src/globals.c (rp_switch_screen_hook): new hook * src/data.h (struct rp_defaults): new slot, bar_in_padding * src/bar.c (bar_x): honour bar_in_padding setting (bar_y): likewise * src/actions.c (init_set_vars): add barinpadding (set_barinpadding): new function * src/globals.h: new global rp_switch_screen_hook
2006-12-14*** empty log message ***sabetts
2006-11-26*** empty log message ***sabetts
2006-11-17* src/split.c (show_frame_indicator): use defaults.frame_fmtsabetts
(show_frame_message): format frame_fmt string with format_string * src/messages.h (MESSAGE_FRAME_STRING): removed * src/main.c (init_defaults): init defaults.frame_fmt * src/data.h (struct rp_defaults): add frame_fmt * src/actions.c (set_framefmt): new function (init_set_vars): new set var "framefmt"
2006-09-27(initialize_default_keybindings): bind "swap" to C-t x and C-t C-xsabetts
2006-09-27*** empty log message ***sabetts
2006-09-26* src/manage.c (update_window_name): return 1 if anything changed. 0 otherwise.sabetts
* src/events.c (property_notify): only update the window names if the window name actually changed. * src/bar.h (redraw_last_message): new prototype * src/bar.c (update_bar): update the window list if that's what's displayed. call redraw_last_message. (update_window_names): call marked_message_internal. (marked_message): call marked_message_internal. (marked_message_internal): ripped body from old marked_message minus alarm reset. (redraw_last_message): new function (show_last_message): call redraw_last_message * src/actions.c: include ctype.h (cmd_license): use redraw_last_message (cmd_help): likewise
2006-08-27(parse_args): gobble spaces at the beginning ofsabetts
the string. (parse_args): use isspace to test for spaces
2006-05-24* src/actions.c (spawn): pass cmd twice to execclsabetts
2006-05-24* src/actions.c (spawn): pass NULL to execclsabetts
2006-05-24* src/xinerama.c (free_xinerama): take void arguments. prototype updated.sabetts
(init_xinerama): likewise * src/window.c (init_window_stuff): take void arguments. prototype updated. (free_window_stuff): likewise * src/split.c (remove_all_splits): take void arguments. prototype updated. (current_frame): likewise (init_frame_lists): likewise (find_last_frame): likewise (current_window): likewise (remove_all_splits): likewise (hide_frame_indicator): likewise (show_frame_indicator): likewise * src/main.c (check_child_procs): take void arguments. prototype updated. (clean_up): likewise * src/number.c (numset_new): take void arguments. prototype updated. * src/manage.c (clear_unmanaged_list): take void arguments. prototype updated. (list_unmanaged_windows): likewise (ungrab_keys_all_wins): likewise (grab_keys_all_wins): likewise (current_screen): likewise (unhide_all_windows): likewise * src/main.c (sighandler): static function (hup_handler): likewise (alrm_handler): likewise (handler): likewise (print_version): likewise (print_help): likewise (show_welcome_message): take void arguments (init_defaults): likewise * src/input.c (ring_bell): take void arguments. prototype updated (update_modifier_map): likewise * src/history.c (get_history_filename): take void arguments (history_load): take void arguments. prototype updated (history_save): likewise (history_reset): likewise (history_previous): likewise (history_next): likewise (history_list_items): likewise * src/group.c (group_in_list): static function (init_groups): take void arguments. prototype updated (free_groups): likewise (group_next_group): likewise (group_prev_group): likewise * src/globals.c (x_export_selection): take void arguments (get_cut_buffer): likewise (get_primary_selection): likewise (get_selection): take void arguments. protype updated. (init_globals): likewise * src/events.c (selection_clear): take void arguments (handle_signals): likewise (listen_for_events): take void argumens. prototype updated * src/bar.c (reset_alarm): take void arguments (show_last_message): take void arguments. prototype updated. (free_bar): likewise * src/actions.c (init_set_vars): static function. take void arguments (clear_frame_redos): take void arguments (pop_frame_undo): likewise (pop_frame_redo): likewise (keymap_new): static function (parse_keydesc): likewise (trivial_completions): likewise (keymap_completions): likewise (window_completions): likewise (group_completions): likewise (colon_completions): likewise (exec_completions): likewise (hook_completions): likewise (var_completions): likewise (update_all_gcs): take void arguments (grab_rat): likewise (ungrab_rat): likewise (init_user_commands): take void arguments. prototype updated. (free_keymaps): likewise (free_aliases): likewise
2006-05-22*** empty log message ***sabetts
2006-05-15* src/manage.c (grab_top_level_keys): use defaults.top_kmap for the top kmapsabetts
* src/main.c (init_defaults): init defaults.top_kmap * src/events.c (handle_key): use defaults.top_kmap for the top kmap * src/data.h (struct rp_defaults): new field, top_kmap * src/actions.c (set_topkmap): new prototype (init_set_vars): topkmap new set variable (initialize_default_keybindings): use defaults.top_kmap for the top kmap (cmd_undefinekey): likewise (cmd_definekey): likewise (cmd_escape): likewise (cmd_delkmap): likewise (set_topkmap): new function
2006-04-29* src/bar.c (marked_message): print NULL if msg is null in debug outputsabetts
* src/actions.c (cmd_getenv): return an empty string for nonexistant env vars. (command): print NULL if rest is null in debug output
2006-04-29(cmd_getenv): return an empty string forsabetts
nonexistant env vars.
2006-04-21* src/actions.h: new command sfrestoresabetts
* src/actions.c (init_user_commands): new command sfrestore (cmd_sfrestore): new function
2006-04-20* src/split.c (show_frame_message): use XmbDrawString and XmbTextEscapementsabetts
* src/screen.c (init_screen): don't include the font in the gc * src/ratpoison.h: include Xlocale.h * src/manage.c (get_wmname): support i18n characters * src/main.c (init_defaults): call load_query_font_set and set_extents_of_fontset (main): call setlocale (clean_up): call XFreeFontSet (set_extents_of_fontset): new function (load_query_font_set): likewise * src/input.c (update_input_window): use XmbTextEscapement and XmbDrawString * src/globals.h (FONT_HEIGHT): use rp_font_ascent and rp_font_descent (MAX_FONT_WIDTH): use rp_font_width new globals rp_font_ascent, rp_font_descent, rp_font_width * src/globals.c: new globals rp_font_ascent, rp_font_descent, rp_font_width * src/data.h (struct rp_defaults): font is a XFontSet * src/bar.c (max_line_length): call XmbTextEscapement (draw_string): call XmbDrawString (get_mark_box): call XmbTextEscapement * src/actions.c (read_frame): call XmbTextEscapement (cmd_license): likewise (read_frame): call XmbDrawString (cmd_license): likewise (cmd_help): likewise (update_gc): don't include the font (set_font): call load_query_font_set
2006-03-162006-03-15 Bernhard R. Link <brlink@debian.org>sabetts
* src/screen.c (screen_update): new function (init_screen): listen for screen resizes * src/screen.h: new prototype * src/events.c (configure_notify): new function (delegate_event): call configure_notify for ConfigureNotify events * src/frame.c (frame_dump): remember the size of the screen the frame coordinates are relative to. (frame_restore): adopt coordinates to possible screen resizes. * src/frame.h (frame_fump): take a screen argument (frame_read): likewise * src/actions.c (cmd_tmpwm): listen for screen resizes again (fdump, frestore, cmd_fdump): supply screen to frame_dump, frameread
2006-03-16* src/main.c (clean_up): use list_size not rp_num_frame_undossabetts
* src/globals.c: remove global var rp_num_frame_undos. All callers updated. * src/actions.c (push_frame_undo): use list_size, not rp_num_frame_undos (set_maxundos): likewise
2006-03-16* src/window.c (_XOPEN_SOURCE): new definesabetts
* src/screen.c (is_a_root_window): w is unsigned int (init_screen): typecast _net_wm_pid as unsigned char*. * src/main.c (read_rc_file): linesize is size_t * src/frame.c (frame_read): use a temp var when reading the :dedicated value. * src/bar.c (max_line_length): i and start are size_t (draw_string): i is size_t (get_mark_box): mark_start and mark_end are size_t * src/actions.c (find_keybinding): state is unsigned int (remove_keybinding): likewise (frame_selector): n is unsigned int (frame_selector_match): i is size_t. typecast comparison as size_t.