mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
Fix coding style, mostly whitespace
This commit is contained in:
parent
f8e1d76333
commit
606b6d946e
6 changed files with 16 additions and 14 deletions
|
|
@ -25,6 +25,6 @@ struct libinput_category {
|
|||
};
|
||||
|
||||
enum device_type get_device_type(const char *s);
|
||||
struct libinput_category *libinput_category_create();
|
||||
struct libinput_category *libinput_category_create(void);
|
||||
|
||||
#endif /* __LABWC_LIBINPUT_H */
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ get_device_type(const char *s)
|
|||
}
|
||||
|
||||
struct libinput_category *
|
||||
libinput_category_create()
|
||||
libinput_category_create(void)
|
||||
{
|
||||
struct libinput_category *l = calloc(1, sizeof(struct libinput_category));
|
||||
if (!l) {
|
||||
|
|
|
|||
|
|
@ -341,8 +341,10 @@ static void xml_tree_walk(xmlNode *node);
|
|||
static void
|
||||
traverse(xmlNode *n)
|
||||
{
|
||||
xmlAttr *attr;
|
||||
|
||||
process_node(n);
|
||||
for (xmlAttr *attr = n->properties; attr; attr = attr->next) {
|
||||
for (attr = n->properties; attr; attr = attr->next) {
|
||||
xml_tree_walk(attr->children);
|
||||
}
|
||||
xml_tree_walk(n->children);
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ change_vt(struct server *server, unsigned int vt)
|
|||
static bool
|
||||
any_modifiers_pressed(struct wlr_keyboard *keyboard)
|
||||
{
|
||||
xkb_mod_index_t i ;
|
||||
xkb_mod_index_t i;
|
||||
for (i = 0; i < xkb_keymap_num_mods(keyboard->keymap); i++) {
|
||||
if (xkb_state_mod_index_is_active
|
||||
(keyboard->xkb_state, i,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue