Change nogroup to nobody
Arch doesn't have nogroup by default.
Applied DPMS patch
This patch interacts with the Display Power Management Signaling and
automatically turns off the monitor after a configurable time. The
monitor is reactivated by a keystroke or moving the mouse.
Add personal configuration and gitignore
Makefile: explicit_bzero.c was copied twice (GNU make gives a warning)
Properly clear the last entered character
When enter is pressed, passwd[len] will be set to '\0'. Pressing
backspace is supposed to remove the last entered character.
But currently, the clearing has an off-by-one, as in setting
passwd[len] to '\0' just like enter would do.
You can also verify it by imagining len=1 and that it's impossible to
clear passwd[0] by pressing backspace with the current code.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
rm trailing whitespace in README
there can only be one window in the event
Fix resize with multiple monitors and portrait mode
When connecting/disconnecting a portrait monitor, the
XRRScreenChangeNotifyEvent height & width are reversed due to the XRandR
rotation; detect this and DTRT.
add arg.h and util.h to Makefile
clarify colors in config.def.h
move config.h inclusion after type declarations
Use explicit strcmp() instead of inlining it
Makes it a tad more readable; the previous "optimization" will be done
by the compiler anyway.
No need for oldc to be static
Use NUL character constant explicitly
Keep the line-lengths at bay
This makes the code more readable and prevents wraparounds in the
editor.
Add a section on security considerations
The section on security considerations sheds some light on the problems that we
can't solve within slock but which the user has to solve in his X configuration.