summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2014-02-20Fall back to ioctl(TIOCNOTTY) to detach from the controlling terminal.Jérémie Courrèges-Anglas
* As with setpgid, only do this if setsid fails or is absent.
2014-02-20Only call setpgid when setsid fails or is absent.Jérémie Courrèges-Anglas
2014-02-20Detect pwd.h and getpwuid.Jérémie Courrèges-Anglas
2014-02-20If HOME is not set in the env., fallback to the passwd entry.Jérémie Courrèges-Anglas
* No attempt to detect pwd.h / getpwuid, not sure if needed.
2014-02-20Mark the X socket as to be closed on exec.Jérémie Courrèges-Anglas
* Avoids leaking a descriptor, and potential problems described in the comp.windows.x FAQ.
2014-02-20Change set_close_on_exec to take a file descriptor.Jérémie Courrèges-Anglas
* Since it's easier to get a fd from a FILE * rather than the other way around.
2014-02-20Kill getsid(2) check in get_child_info.Jérémie Courrèges-Anglas
* Purpose not understood, usage can't be right on OSes where getsid fails with EPERM if ratpoison and the argument pid are not in the session; guess what, ratpoison calls setsid(2) in spawn()...
2014-02-20Kill noisy local variable.Jérémie Courrèges-Anglas
2014-02-20Amend / kill weak comments.Jérémie Courrèges-Anglas
2014-02-20Simplify using sbuf_free_struct.Jérémie Courrèges-Anglas
2014-02-20Stop using XKeycodeToKeysym (deprecated).Jérémie Courrèges-Anglas
* Use XkbKeycodeToKeysym instead. Not sure if this is a good change, but publish it at least so that people can test and report.
2014-02-20Make some members of struct rp_input_line size_t.Jérémie Courrèges-Anglas
2014-02-20Test for __builtin_prefetch, not for __GNUC__.Jérémie Courrèges-Anglas
* Fixes build with pcc.
2014-01-06Revert b470085.Jérémie Courrèges-Anglas
* Wrong usage of pointers. Those two helper functions are supposed to update frame parameters passed as pointers, but this does not work. Assigning to a pointer merely changes its local value. * Additionally, forgotten assignment to "done" in find_non_dedicated_frame(), bug not visible in non-xinerama setups.
2014-01-05Kill code #if 0'ed since 2001.Jérémie Courrèges-Anglas
2014-01-04Kill init_globals().Jérémie Courrèges-Anglas
* selection has static storage and is thus correctly initialized.
2014-01-04Ansify read_any_key().Jérémie Courrèges-Anglas
2014-01-03Make our fallback getline more compliant.Jérémie Courrèges-Anglas
* don't use xmalloc/xrealloc, but return -1 in case of memory allocation failure * modify the parameters only when allocation succeeds
2014-01-03Don't mix code and decls.Jérémie Courrèges-Anglas
2014-01-03strdup -> xstrdupJérémie Courrèges-Anglas
2014-01-03malloc -> xmallocJérémie Courrèges-Anglas
2014-01-03One realloc -> xrealloc.Jérémie Courrèges-Anglas
2014-01-03Get rid of useless casts of xmalloc/realloc return value.Jérémie Courrèges-Anglas
2014-01-03if (ptr) free(ptr) is not a good idiom.Jérémie Courrèges-Anglas
2014-01-03Kill useless X_LDFLAGS and reorder variables.Jérémie Courrèges-Anglas
2014-01-03Open $sysconfdir/ratpoisonrc, don't hardcode /etc.Jérémie Courrèges-Anglas
2014-01-03Be more verbose about failures in read_startup_files().Jérémie Courrèges-Anglas
* If we fail with errno set to something != ENOENT then an error message should probably be printed.
2014-01-03Better error checking for -f configfile.Jérémie Courrèges-Anglas
* make read_startup_files() return whether it succeeded. A failure is when the user passed a specific config file, but we couldn't load it. * in main() exit if read_startup_files() failed.
2014-01-03Report bugs to PACKAGE_BUGREPORT.Jérémie Courrèges-Anglas
2014-01-03In str_comp() make len and i size_t.Jérémie Courrèges-Anglas
2014-01-03Typo in comment.Jérémie Courrèges-Anglas
2014-01-03Tiny xmalloc/realloc/strdup cleanup.Jérémie Courrèges-Anglas
* kill "register" * compare pointers against NULL * separate declarations and code
2014-01-03In parse_keydesc() strdup the key desc only if needed.Jérémie Courrèges-Anglas
2014-01-03messages.h is included from ratpoison.h.Jérémie Courrèges-Anglas
2014-01-03Non-compliant enum forward declaration.Jérémie Courrèges-Anglas
2014-01-03Remove some fairly obvious comments.Jérémie Courrèges-Anglas
2014-01-03FD_CLOEXEC is only used in set_close_on_exec().Jérémie Courrèges-Anglas
2014-01-03We need config.h, no need for ifdef's.Jérémie Courrèges-Anglas
2013-12-03Bogus cmdret_free call.Jérémie Courrèges-Anglas
2013-11-26Don't check for usleep, useless since Dec. 2004Jérémie Courrèges-Anglas
* see 9cb1a3d. If your system doesn't provide usleep or ratpoison doesn't manage to find it, please report back.
2013-11-22Cast char arguments to to*/is* ctype calls to unsigned charJérémie Courrèges-Anglas
* those functions expect an int whose value is between -1 and 255. Cast to unsigned char so that sign extension when promoting to int doesn't bite us.
2013-11-21Don't assume getsid succeeds, fixes %p "glitches"Jérémie Courrèges-Anglas
* on eg. OpenBSD you get -1 with errno set to EPERM if you call getsid on a pid no in the same session group as you. This makes the session id check much less useful, and exhibits glitches with %p in winfmt. For now, just bail out if getsid fails...
2013-11-20Cleanup cmd_metaJérémie Courrèges-Anglas
* plug memory leak * consistent indentation * minimize variables scope * kill commented code
2013-11-20In cmd_meta, don't pass stack garbage to XSendEvent.Jérémie Courrèges-Anglas
* zero out the whole struct and explicitely assign CurrentTime (OL) to ev.xkey.time. This should please Firefox when using C-t t.
2013-11-17Use sbuf_chop in fdump() to trim trailing comma.Jérémie Courrèges-Anglas
* those commas shouldn't have been there in the first place. If your scripts rely on this, watch out! * code simplified and variables better named, while here.
2013-11-17Introduce sbuf_chop()Jérémie Courrèges-Anglas
2013-08-08Plug leak in cmd_sfrestore.Jérémie Courrèges-Anglas
Noticed by Repolho <repolho at zoho dot com>, who came with a different fix.
2013-08-08Cleanup cmd_sfdump.Jérémie Courrèges-Anglas
Better variable names, more readable formatting. Use a fixed buffer for the screen number appended to each frameset.
2013-08-08Consistent formatting in cmd_sfrestore.Jérémie Courrèges-Anglas
2013-08-08Remove useless/untrue comments in cmd_sfrestore.Jérémie Courrèges-Anglas