Code style: fix misaligned and trailing whitespaces
This commit is contained in:
parent
854885ea9d
commit
d3976fee8c
|
@ -246,8 +246,8 @@ int main(int argc, char *argv[]) {
|
||||||
sigaction(SIGINT, &action, NULL);
|
sigaction(SIGINT, &action, NULL);
|
||||||
|
|
||||||
/* Since pthread_cond_wait() expects a mutex, we need to provide one.
|
/* Since pthread_cond_wait() expects a mutex, we need to provide one.
|
||||||
* To not lock i3 (that’s bad, mhkay?) we just define one outside of
|
* To not lock i3 (that’s bad, mhkay?) we just define one outside of
|
||||||
* the shared memory. */
|
* the shared memory. */
|
||||||
pthread_mutex_t dummy_mutex = PTHREAD_MUTEX_INITIALIZER;
|
pthread_mutex_t dummy_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||||
pthread_mutex_lock(&dummy_mutex);
|
pthread_mutex_lock(&dummy_mutex);
|
||||||
while (!interrupted) {
|
while (!interrupted) {
|
||||||
|
|
|
@ -145,9 +145,9 @@ void ipc_send_barconfig_update_event(Barconfig *barconfig);
|
||||||
void ipc_send_binding_event(const char *event_type, Binding *bind);
|
void ipc_send_binding_event(const char *event_type, Binding *bind);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the maximum duration that we allow for a connection with an unwriteable
|
* Set the maximum duration that we allow for a connection with an unwriteable
|
||||||
* socket.
|
* socket.
|
||||||
*/
|
*/
|
||||||
void ipc_set_kill_timeout(ev_tstamp new);
|
void ipc_set_kill_timeout(ev_tstamp new);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -49,8 +49,8 @@
|
||||||
#define ROOT_EVENT_MASK (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | \
|
#define ROOT_EVENT_MASK (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | \
|
||||||
XCB_EVENT_MASK_BUTTON_PRESS | \
|
XCB_EVENT_MASK_BUTTON_PRESS | \
|
||||||
XCB_EVENT_MASK_STRUCTURE_NOTIFY | /* when the user adds a screen (e.g. video \
|
XCB_EVENT_MASK_STRUCTURE_NOTIFY | /* when the user adds a screen (e.g. video \
|
||||||
projector), the root window gets a \
|
* projector), the root window gets a \
|
||||||
ConfigureNotify */ \
|
* ConfigureNotify */ \
|
||||||
XCB_EVENT_MASK_POINTER_MOTION | \
|
XCB_EVENT_MASK_POINTER_MOTION | \
|
||||||
XCB_EVENT_MASK_PROPERTY_CHANGE | \
|
XCB_EVENT_MASK_PROPERTY_CHANGE | \
|
||||||
XCB_EVENT_MASK_FOCUS_CHANGE | \
|
XCB_EVENT_MASK_FOCUS_CHANGE | \
|
||||||
|
|
|
@ -91,7 +91,7 @@ char *get_exe_path(const char *argv0) {
|
||||||
free(destpath);
|
free(destpath);
|
||||||
sasprintf(&destpath, "%s/%s", component, argv0);
|
sasprintf(&destpath, "%s/%s", component, argv0);
|
||||||
/* Of course this is not 100% equivalent to actually exec()ing the
|
/* Of course this is not 100% equivalent to actually exec()ing the
|
||||||
* binary, but meh. */
|
* binary, but meh. */
|
||||||
if (access(destpath, X_OK) == 0) {
|
if (access(destpath, X_OK) == 0) {
|
||||||
free(path);
|
free(path);
|
||||||
free(tmp);
|
free(tmp);
|
||||||
|
|
|
@ -59,7 +59,7 @@ struct connstate {
|
||||||
ev_io *clientw;
|
ev_io *clientw;
|
||||||
|
|
||||||
/* serverw is a libev watcher for the connection to X11 which we initiated
|
/* serverw is a libev watcher for the connection to X11 which we initiated
|
||||||
* on behalf of the client. */
|
* on behalf of the client. */
|
||||||
ev_io *serverw;
|
ev_io *serverw;
|
||||||
|
|
||||||
/* sequence is the client-side sequence number counter. In X11’s wire
|
/* sequence is the client-side sequence number counter. In X11’s wire
|
||||||
|
|
Loading…
Reference in New Issue