diff options
author | FRIGN <dev@frign.de> | 2016-09-11 23:08:19 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-09-23 18:39:01 +0200 |
commit | b00f444a4ea0d9ffa5cd7dcda71c97cdf05d322e (patch) | |
tree | 70941ff297d2257a52621884f64af9cbfa364b52 /Makefile | |
parent | cd3c546c37d91e24b8c55bab88bfcb920d8ea895 (diff) |
Remove cleanup and deglobalize and rework data structures
The cleanup removal is a joint-venture with Markus. We assume the X server does
the cleanup, so we don't need it. The idea is that the fds are closed at exit
and thus already indicate to the X server that the client has quit. Analogously
the same applies to freeing memory sections previously allocated for the X
server.
We love XXXXXL burgers and therefore removed
XUngrabPointer
XUngrabKeyboard
XFreeColors
XFreePixmap
XDestroyWindow
Lines of Code.
For a project like slock there is no need to carry around global state. By
moving the three structures to main() it is now clear which functions modify
which state, greatly improving the readability of the code, especially given
slock is a suid program.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions