summaryrefslogtreecommitdiff
path: root/slock.c
AgeCommit message (Collapse)Author
2016-02-14Simplify the oom-taming-functionFRIGN
There really is no need to source a defined variable from a linux header. The OOM-rank ranges from -1000 to 1000, so we can safely hardcode -1000, which is a sane thing to do given slock is suid and we don't want to play around too much here anyway. On another notice, let's not forget that this still is a shitty heuristic. The OOM-killer still can kill us (thus I also changed the wording in the error-message. We do not disable the OOM-killer, we're just hiding.
2016-02-11update copyright year in -v outputMarkus Teich
2016-01-29add hint for suid to oom error messageMarkus Teich
2016-01-18error messages on grab failureMarkus Teich
2016-01-18code style fixMarkus Teich
2015-12-26add option to run command after screen is lockedMarkus Teich
2015-08-27Don't change to failure colour on successDavid Phillips
2015-07-06Slightly safer OOM killer disablement in linuxDavid Phillips
2015-05-08rework setting window colorMarkus Teich
2015-05-08consistently use () with sizeofMarkus Teich
2015-05-08Option to not show failure color on clearNick Currier
2015-04-01resize lockscreen window after Xrandr resizeMarkus Teich
2015-04-01Blank the screen with color 0, add third color for failed loginsDavid Phillips
- Adds another color in config.def.h, COLOR_INIT - Renames the colours from numerical ones to ones with meaningful names; COLOR_INPUT for when there is content in the input buffer and COLOR_EMPTY for when the input buffer has been cleared (backspaced or a failed attempt). - Ensures XFreeColors frees the right number of colours. This is now derived from the size of `Lock->colors` rather than being an integer literal. - Makes slock exhibit the behaviour described by Markus The default colours are the same as the ones slock currently uses, with the exception of the new color, which I have set to red, as it indicates someone has either failed an attempt to unlock, or that they have entered input and erased it all.
2015-01-27applied Dimitris' style patch from Dec'14, with some minor modificationsAnselm R Garbe
2014-12-22fixed usage stringAnselm R Garbe
2014-12-22applied sin's patch and prepared new releaseAnselm R Garbe
2014-11-09end{pw,sp}ent() can only be called after get{pw,sp}ent()sin
Calling them unconditionally can result in memory corruption.
2014-07-09Only check errno if getpwuid() failssin
Checking errno otherwise is unspecified.
2014-06-09Add /etc/passwd supportFRIGN
Fix slock to work with /etc/passwd without /etc/shadow. while we're at it, remove an occurence of trailing whitespace.
2014-01-29Set errno to 0 before getpwuid() and check it afterwardssin
2013-08-02applied Robert Schneider's Linux suggestions, also bumped version and ↵Anselm R Garbe
updated LICENSE file's copyright notice
2012-08-02applied andres' multi-slock fix, thanks for spotting this issuegarbeam@gmail.com
2012-04-15added Ben's password placeholder entry kludgeanselm@garbe.us
2012-03-17applied Eckehard Bern's dualcolor patch to slockanselm@garbe.us
2012-02-09select for SubstructureRedirectMask as wellanselm@garbe.us
2012-02-09fixed missing new linesanselm@garbe.us
2012-02-05typo fixanselm@garbe.us
2012-02-05added XRaiseWindow workaround when new clients are launchedanselm@garbe.us
2012-01-24applied Michaels patchgarbeam@gmail.com
2012-01-22added dummy error handler to prevent X from terminating slock just in caseanselm@garbe.us
2011-04-21applied Markus' patch to die in case /etc/passwd is unavailableAnselm R Garbe
2009-11-26applied Fernando Silveira's multiscreen patch for old style multihead setupsAnselm R Garbe
2008-12-12applied Ali Gholami Rudi's patch regarding DPMS timeout customization and ↵a@null
persistence
2008-07-29prepared releaseAnselm R Garbe
2008-07-29removed useless chars, prepared releaseAnselm R Garbe
2008-04-09s/d//Anselm R Garbe
2008-04-09yet another DPMS fix, still trying to prevent the error handlerAnselm R Garbe
2008-04-08fixed DPMS crashing issueAnselm R Garbe
2008-02-22applied two patches, BSD_AUTH patch and Gottox' DPMS support patchAnselm R Garbe
2007-11-25removed Sander from -v by requestAnselm R. Garbe
2007-11-24next version will be 0.8Anselm R. Garbe
2007-11-24final fixes and cleanupsAnselm R. Garbe
2007-11-13applied Ryan Sorensen bugfix which allows slock to acquire the keyboard grab ↵arg@suckless.org
asynchroneously
2007-04-13updating copyright stuff in slock as wellAnselm R. Garbe
2007-03-07grab on the root window, it is correct, all lockers do thatAnselm R. Garbe
2007-03-02grab on the slock window instead on the root windowAnselm R. Garbe
2007-02-21made slock more readable, added root variable because we intend to call ↵Anselm R. Garbe
RootWindow(...) quite a lot
2007-02-21made slock more aggressive, DenisG please recheckAnselm R. Garbe
2007-02-01foobarAnselm R. Garbe
2007-01-13fixed a potential buffer overflow bug on the stack (thanks to Ghassan Misherg)Anselm R. Garbe