mirror of git://git.suckless.org/svkbd
code-style
This commit is contained in:
parent
d509e189d4
commit
4c4a085580
13
svkbd.c
13
svkbd.c
|
@ -2,15 +2,15 @@
|
|||
#include <sys/select.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include <locale.h>
|
||||
#include <signal.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include <X11/keysym.h>
|
||||
#include <X11/keysymdef.h>
|
||||
|
@ -31,11 +31,15 @@
|
|||
|
||||
/* macros */
|
||||
#define LENGTH(x) (sizeof x / sizeof x[0])
|
||||
#define TEXTW(X) (drw_fontset_getwidth(drw, (X)))
|
||||
#define STRINGTOKEYSYM(X) (XStringToKeySym(X))
|
||||
#define TEXTW(X) (drw_fontset_getwidth(drw, (X)))
|
||||
|
||||
/* enums */
|
||||
enum { SchemeNorm, SchemeNormABC, SchemeNormABCShift, SchemeNormShift, SchemePress, SchemePressShift, SchemeHighlight, SchemeHighlightShift, SchemeOverlay, SchemeOverlayShift, SchemeLast };
|
||||
enum {
|
||||
SchemeNorm, SchemeNormABC, SchemeNormABCShift, SchemeNormShift, SchemePress,
|
||||
SchemePressShift, SchemeHighlight, SchemeHighlightShift, SchemeOverlay,
|
||||
SchemeOverlayShift, SchemeLast
|
||||
};
|
||||
enum { NetWMWindowType, NetLast };
|
||||
|
||||
/* typedefs */
|
||||
|
@ -767,7 +771,6 @@ readxresources(void)
|
|||
if (XrmGetResource(xdb, "svkbd.overlayshiftforeground", "*", &type, &xval) && !colors[SchemeOverlayShift][ColFg])
|
||||
colors[SchemeOverlayShift][ColFg] = estrdup(xval.addr);
|
||||
|
||||
|
||||
XrmDestroyDatabase(xdb);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue