~ob/slock

Change nogroup to nobody

Arch doesn't have nogroup by default.
Apply xresources patch

The patch has been modified to not longer be applied on top of the
caps-color patch.
Added myself to license
Added personal config
Added .gitignore
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.
35633d45 — Tobias Stoeckmann 4 years ago
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>
2d2a21a9 — Markus Teich 4 years ago
rm trailing whitespace in README
325581b9 — Markus Teich 4 years ago
syntax fix
0ff0d9f7 — Markus Teich 4 years ago
there can only be one window in the event
7a604ec1 — Bob Uhl 4 years ago
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.
fa115895 — Markus Teich 4 years ago 1.4
bump version
d5da84cf — Markus Teich 4 years ago
add arg.h and util.h to Makefile
ae96836f — Markus Teich 4 years ago
clarify colors in config.def.h
7d31ff65 — Markus Teich 4 years ago
move config.h inclusion after type declarations
59746954 — Laslo Hunhold 4 years ago
Unboolify slock.c
c96e725d — FRIGN 4 years ago
Use explicit strcmp() instead of inlining it

Makes it a tad more readable; the previous "optimization" will be done
by the compiler anyway.
6a1bd896 — FRIGN 4 years ago
No need for oldc to be static
b099d2fd — FRIGN 4 years ago
Use NUL character constant explicitly
0a43b78d — FRIGN 4 years ago
Keep the line-lengths at bay

This makes the code more readable and prevents wraparounds in the
editor.
Next