summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-05-27Move from Leenode to Libera.ChatHEADmasterJeremie Courreges-Anglas
The Freenode IRC network has been taken over by someone who managed to somehow "buy" it from christel. Contrary to his promises to not interfere, he tried to gain control over the network, leading to the original staff team leaving and creating a new IRC network. While I'm not happy to see Freenode butchered like that, I'm happy to find that Libera.Chat seems to be a sane and safe place for ratpoison users to lurk.
2021-05-25Update contact info for |cos|cr/remove_cos_obsolete_irccos
As of yesterday's move from Freenode to Libera.Chat, ratpoison's irc is no longer a valid contact channel.
2017-09-25Kill not-so-useful targetsJérémie Courrèges-Anglas
2017-09-25Bump to -betaJérémie Courrèges-Anglas
Reminded by 'brainwash'
2017-09-18%x formats the xrandr screen numberJérémie Courrèges-Anglas
Defaults to the screen number if XRandR isn't available
2017-09-18Actually xrandr.name can be a simple char *Jérémie Courrèges-Anglas
2017-09-18xrandr.name is a struct sbuf -> sbuf_freeJérémie Courrèges-Anglas
2017-09-18Move #ifdef HAVE_XRANDR in xrandr.cJérémie Courrèges-Anglas
- always build xrandr.c - provide stubs in xrandr.c; only init_xrandr() anc xrandr_fill_screen() are safe to call if XRandR support is not built in Code that wants to use XRandR outside xrandr.c should test rp_have_xrandr.
2017-09-18Swap argument and return value of xrandr_query_screenJérémie Courrèges-Anglas
Leads to clearer code in screen.c
2017-09-18Make 'set font' change the Xft font on all screensJérémie Courrèges-Anglas
2017-09-18Delete more unused codeJérémie Courrèges-Anglas
2017-09-18set_active_window_body can be staticJérémie Courrèges-Anglas
2017-09-18Put related decls togetherJérémie Courrèges-Anglas
2017-09-18Kill unused paramJérémie Courrèges-Anglas
2017-09-18Kill unused functionJérémie Courrèges-Anglas
2017-09-18Consumers don't need to know the entrails of a numsetJérémie Courrèges-Anglas
2017-09-17keymap_free can be staticJérémie Courrèges-Anglas
2017-09-17Turn utf8 macros into functions with less ugly namesJérémie Courrèges-Anglas
2017-09-17Move RP_IS_UTF8_* macros in utf8.hJérémie Courrèges-Anglas
Only used in editor.c when introduced, but they're used elsewhere since.
2017-09-17copyright+licenseJérémie Courrèges-Anglas
2017-09-17Shuffle some codeJérémie Courrèges-Anglas
2017-09-17Move utf8_locale setting in utf8.cJérémie Courrèges-Anglas
Less goo in main.c
2017-09-17NEWS entries since 1.4.9Jérémie Courrèges-Anglas
2017-09-17Update .gitignoreJérémie Courrèges-Anglas
2017-09-17Initialize utf8_locale in main(), it doesn't belong in defaults nowJérémie Courrèges-Anglas
2017-09-17Simplify ratpoison -c realloc loopJérémie Courrèges-Anglas
2017-09-17Move the sbuf_utf8_nconcat test to its own fileJérémie Courrèges-Anglas
2017-09-17Move fatal() and x* helpers to their own fileJérémie Courrèges-Anglas
Should help use them from within tests.
2017-09-17Move utf8_locale to its own fileJérémie Courrèges-Anglas
So that we can easily use it from tests.
2017-09-17Rename concat_width to sbuf_utf8_nconcat, and move it to sbuf.cJérémie Courrèges-Anglas
This function appends n UTF-8 characters to its sbuf parameter. Falls back to bytes in a non-UTF-8 locale. If width = -1, it appends the whole input string.
2017-09-17Add a test program to exercise concat_width()Will Storey
This program can be run using `make check`. In order to do this, you will need to run `autogen.sh` again.
2017-09-17Handle UTF-8 in concat_width()Jérémie Courrèges-Anglas
Ensure that we don't truncate UTF-8 characters in %42s-style format strings. Prompted by a similar diff by Will Storey <will@summercat.com>, that made use of the wide char API. I find it simpler to just handle UTF-8.
2017-08-29add texinfo documentation for variable onlyborderVasil Zlatanov
Signed-off-by: Vasil Zlatanov <v@skozl.com>
2017-08-28Move several functions out of main.c into globals.cWill Storey
These functions are used in many parts of ratpoison. In order to compile a separate program using the ratpoison files, we need them available outside of main.c.
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-08-07Fix: call using_history after initializing history entriesAntoine Busque
In its current state, history expansion requiring any sort of string lookup is not working, always returing "event not found". This is due to `history_offset` being set improperly by an early call to `using_history`. A call to `using_history` needs to follow, not precede, the loop performing initialization of history entries found in `history_expand_line`. This allows for `history_offset` to reflect the now non-zero length of the history, restoring the expected behaviour of history expansion. Tested-by: Martin Hertz <mvhertz@gmail.com> Signed-off-by: Antoine Busque <antoinebusque@gmail.com>
2017-07-09Always show the frame indicator when switching to a different screen.Jérémie Courrèges-Anglas
When switching to another screen, the focus{left,right,up,down} commands only show the frame indicator if the target screen has more than one frame. This behavior is kinda non-intuitive. Pointed out by Antoine Busque, who also provided a different fix.
2017-07-04Fix: check frame overlap in find_frame_left, find_frame_rightAntoine Busque
When compared with the existing overlap check in `find_frame_{up,down}`, it appears that the original implementation of the overlap test for `find_frame_{left,right}` is erroneous. Indeed, the wrong boundaries are used, which causes issues like allowing finding a frame in one direction, but not finding the frame when going back in the reverse direction. Commands like `focus{left,right}` rely on the corresponding `find_frame` function. The original boundaries check issue meant that, on differently sized screens, focus could pass from one screen to the next in one direction, but not in the other. The boundary checks have therefore been corrected to mirror those in `find_frame_{up,down}`, and check for actual overlap between the frames. Signed-off-by: Antoine Busque <antoinebusque@gmail.com>
2017-05-06Update manpage timestamp.Jérémie Courrèges-Anglas
2017-05-06New sentence, new lineJérémie Courrèges-Anglas
2017-05-06Fix mdoc syntaxJérémie Courrèges-Anglas
.Dd takes [month day, year], not year-month-day. Spotted by brainwash.
2017-04-28Fix doc for 'resize'.Jérémie Courrèges-Anglas
Spotted by user 'brainwash', thanks!
2017-04-04Remove the debian/ directoryJérémie Courrèges-Anglas
Outdated; no objection from brl
2017-04-04@$#?! strcasestrJérémie Courrèges-Anglas
2017-04-04Developer doc tweaksJérémie Courrèges-Anglas
2017-04-03Fix previous.Jérémie Courrèges-Anglas
2017-04-03Avoid useless deprecation warningsJérémie Courrèges-Anglas
Looks like strcasestr was actually a GNU extension, so using _BSD_SOURCE doesn't make sense. POSIX declares it in strings.h, glibc-2.25 and older declare it in string.h if _GNU_SOURCE is defined.
2017-04-03New release: ratpoison-1.4.9Jérémie Courrèges-Anglas
2017-04-03Tweak wording about focus* commands working across screensJérémie Courrèges-Anglas