1
0
Fork 0
mirror of https://github.com/Raymo111/i3lock-color.git synced 2024-12-02 14:05:43 -05:00
i3lock-color/i3lock.h
Pandora 59cdccb3e5
make render thread optional
theoretical potential security concerns; no use unless using bar and you care... I hammered pretty hard on my kb for a while to try and see if it's possible to configure it poorly and get the render thread to crash, but to no avail.
2017-12-08 02:29:05 -05:00

17 lines
652 B
C

#ifndef _I3LOCK_H
#define _I3LOCK_H
// boy i sure hope this doesnt change in the future
#define NANOSECONDS_IN_SECOND 1000000000
/* This macro will only print debug output when started with --debug.
* This is important because xautolock (for example) closes stdout/stderr by
* default, so just printing something to stdout will lead to the data ending
* up on the X11 socket (!). */
#define DEBUG(fmt, ...) \
do { \
if (debug_mode) \
printf("[i3lock-debug] " fmt, ##__VA_ARGS__); \
} while (0)
#endif