summaryrefslogtreecommitdiffstats
path: root/source/x11-helper.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-08 21:36:06 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-08 21:36:06 +0100
commitbaab2047adf24642cbc727b50a77dc544e934a76 (patch)
treef9437dda9ae91d4e59b67231eec2cb3b51a1fe93 /source/x11-helper.c
parent8c0c43952dceb78d717f036478b4d66c75267a3b (diff)
Indent magic, rework makefile so lexer and yacc file are not passed.
Diffstat (limited to 'source/x11-helper.c')
-rw-r--r--source/x11-helper.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/x11-helper.c b/source/x11-helper.c
index 1c909922..7121b2df 100644
--- a/source/x11-helper.c
+++ b/source/x11-helper.c
@@ -533,7 +533,7 @@ int take_pointer ( xcb_window_t w, int iters )
}
free ( r );
}
- if ( (++i) > iters ){
+ if ( ( ++i ) > iters ) {
break;
}
usleep ( 1000 );
@@ -559,7 +559,7 @@ int take_keyboard ( xcb_window_t w, int iters )
}
free ( r );
}
- if ( (++i) > iters ){
+ if ( ( ++i ) > iters ) {
break;
}
usleep ( 1000 );
@@ -646,14 +646,14 @@ gboolean x11_parse_key ( const char *combo, unsigned int *mod, xkb_keysym_t *key
char *mod_key = input_key;
char *error_msg = NULL;
unsigned int modmask = 0;
- xkb_keysym_t sym = XKB_KEY_NoSymbol;
+ xkb_keysym_t sym = XKB_KEY_NoSymbol;
// Test if this works on release.
if ( g_str_has_prefix ( mod_key, "!" ) ) {
++mod_key;
*release = TRUE;
}
- char **entries = g_strsplit_set ( mod_key, "+-", -1);
+ char **entries = g_strsplit_set ( mod_key, "+-", -1 );
for ( int i = 0; entries && entries[i]; i++ ) {
char *entry = entries[i];
// Remove trailing and leading spaces.
@@ -704,7 +704,7 @@ gboolean x11_parse_key ( const char *combo, unsigned int *mod, xkb_keysym_t *key
}
g_free ( entry_lowered );
}
- g_strfreev(entries);
+ g_strfreev ( entries );
g_free ( input_key );