summaryrefslogtreecommitdiff
path: root/src/actions.c
AgeCommit message (Collapse)Author
2019-01-10Make AltGr a key modifier with prefix Ghax/altgr_supportcos
This code kind of works for me, but no thought has been put into correct implementation.
2017-09-18Make 'set font' change the Xft font on all screensJérémie Courrèges-Anglas
2017-09-18Kill unused functionJérémie Courrèges-Anglas
2017-09-17keymap_free can be staticJérémie Courrèges-Anglas
2017-08-28add onlyborder variableVasil Zlatanov
When onlyborder is set to 0 (default 1), borders are not displayed if there is only a single frame on a given screen. This is useful if you use (thick) coloured borders to show which is the currently focused window when using splits, but also don't want to have borders taking up space unnecessarily when running a fullscreen window. Signed-off-by: Vasil Zlatanov <v@skozl.com>
2017-08-21Fix: sync wins correctly after tmpwm for multiple screensAntoine Busque
The current implementation of `sync_wins`, which gets called after control is returned to ratpoison following a call to `tmpwm`, gets executed once per screen. This is not only unnecesary, but also causes ratpoison to break after returning from `tmpwm`. This is due to two things: first, we can scan for the windows in only one pass, because the call to `XQueryTree` returns all windows below the root window, which is shared across the screens. Second, the current implementation only checks whether a window is a special ratpoison window (i.e. the key window, bar window, etc.) for the current screen. This results in some windows being mapped although they shouldn't be, which is what causes the break preventing ratpoison from receiving commands correctly, This patch fixes these issues by only running `sync_wins` once instead of on all screens, and by using the existing `is_rp_window` utility function to prevent a special ratpoison window from being mapped, regardless of the screen it belongs to. Signed-off-by: Antoine Busque <antoinebusque@gmail.com>
2017-03-10Print a warning message to stdout if we hit an unknown commandJérémie Courrèges-Anglas
Should help finding typos in config files. (If use startxr, you should probably redirect stdout and stderr to ~/.xsession-errors in your ~/.xinitrc.)
2017-03-10Print a warning if a deprecated command is used.Jérémie Courrèges-Anglas
2017-03-09Unused variableJérémie Courrèges-Anglas
2017-03-09Setting framemsgwait to -1 disables the 'Current frame' message.Jérémie Courrèges-Anglas
2017-02-15Merge branch 'xrandr'Jérémie Courrèges-Anglas
All the hard work on xrandr done by Mathieu OTHACEHE, thanks!
2016-12-01Fix and simplify sfrestoreJérémie Courrèges-Anglas
Use a scratch buffer for each screen, this simplifies a lot allocations and iterations, and allows restoring screens that contain more than one frame.
2016-12-01sfrestore: in case of error, mention the screen number, not its xrandr idJérémie Courrèges-Anglas
2016-12-01sfrestore: partial fix for frame allocation/deallocationJérémie Courrèges-Anglas
There is still a problem with allocation of screens vs frames. A screen can have multiple frames (for now this triggers a segfault).
2016-12-01sselect: print the screen number in case of failureJérémie Courrèges-Anglas
2016-12-01fdump: don't segfault if screen is not foundJérémie Courrèges-Anglas
2016-12-01Fix sfrestoreMathieu OTHACEHE
Use screen numset in sfrestore
2016-12-01Fix sfdumpMathieu OTHACEHE
Use screen numset in sfdump
2016-12-01Fix fdump and sselectMathieu OTHACEHE
Use screen numset in fdump and sselect.
2016-11-23Keep frame undo/redo local to actions.cJérémie Courrèges-Anglas
2016-11-23Reorder to put local variables togetherJérémie Courrèges-Anglas
2016-11-23Move more stuff from actions.h to actions.cJérémie Courrèges-Anglas
2016-11-23Kill more dead decls and functions.Jérémie Courrèges-Anglas
2016-11-23Move some implementation details from actions.h to actions.cJérémie Courrèges-Anglas
2016-11-23Implement a "commands" command to dump all available... commandsJérémie Courrèges-Anglas
2016-11-23Switch rudeness to a settable variableJérémie Courrèges-Anglas
2016-11-22Add a note to keep variables sorted.Jérémie Courrèges-Anglas
2016-11-22Kill "compat" and all support for "deffoo..."Jérémie Courrèges-Anglas
It's been more than 10 years that "compat" has been introduced, people have had enough time to change their config files and scripts.
2016-11-22Sort and insert variables in orderJérémie Courrèges-Anglas
Makes ''ratpoison -c set'' output more readable.
2016-11-22TypoJérémie Courrèges-Anglas
2016-11-22Make 'warp' and 'startupmessage' settable variables.Jérémie Courrèges-Anglas
For consistency with other variables they accept 0 or 1. The 'warp' and 'startup_message' commands stay around and still accept "on" and "off".
2016-11-22Temporarily mark sfrestore as brokenJérémie Courrèges-Anglas
2016-11-22Style nits, typo and non-existing functions.Jérémie Courrèges-Anglas
2016-11-17Add xrandr supportMathieu OTHACEHE
Drop deprecated xinerama support and replace it with xrandr. Signed-off-by: Mathieu OTHACEHE <m.othacehe@gmail.com>
2016-11-11Introduce multiple completion styles.Mathieu OTHACEHE
The default, legacy style is named BASIC. A new completion style named SUBSTRING is added. Use SUBSTRING for window name completion in select command. Use BASIC everywhere else.
2016-06-12Stop embedding build time, it makes builds less reproducible.Jérémie Courrèges-Anglas
2016-02-23Fix select error handling.brainwash
Skip the error message and only show the window list when selecting an used window number in interactive mode.
2015-06-16New settable variable, framemsgwaitJérémie Courrèges-Anglas
Same as "msgwait" for for "Current Frame" messages.
2015-06-16Make msgwait a variable; keep the command for a whileJérémie Courrèges-Anglas
2015-02-05Be more strict about what "dedicate" acceptsJérémie Courrèges-Anglas
No argument or... either 0 or 1. Will perhaps make debugging easier.
2014-06-14Fix sfdump.Jérémie Courrèges-Anglas
One more proof that I should not hack on the multiple screens support. Patch from Joshua Leners.
2014-03-29In read_shellcmd make sure we don't dereference a NULL pointer.Jérémie Courrèges-Anglas
2014-03-24Ensure NULL is treated as a pointer in execl* callsJérémie Courrèges-Anglas
2014-03-24Avoid malloc(0) in add_command.Jérémie Courrèges-Anglas
2014-03-24In frestore flag a frame_read error as appropriate.Jérémie Courrèges-Anglas
* while here kill a stray ';'
2014-03-24Factorize code in cmd_fdump.Jérémie Courrèges-Anglas
2014-03-24Kill code and simplify cmd_numberJérémie Courrèges-Anglas
* cmd_number needs at least one argument * The code that handled the zero argument case was thus unreachable, and was the last user of print_window_information, so kill that function.
2014-03-04Kill last strcpy occurrence.Jérémie Courrèges-Anglas
* replace_keybinding is seldom used, no need to half-optimize it
2014-03-04Simplify read_shellcmd using sbufJérémie Courrèges-Anglas
2014-03-04Use get_homedir anywhere we can.Jérémie Courrèges-Anglas