mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Apply coding std to <mouse> code & add .clang-format
The files:
include/config/mousebind.h
src/config/mousebind.c
src/config/rc.xml
were formatted automatically via clang-format using the rules specified
in the .clang-format file. Specifically, the command;
clang-format -i -style=file include/config/mousebind.h \
src/config/mousebind.c src/config/rc.xml
This is unfortunately adding a break before the brace in enum
declarations
This commit is contained in:
parent
10a685a0e4
commit
1ac654f006
4 changed files with 117 additions and 102 deletions
|
|
@ -4,23 +4,30 @@
|
|||
#include "ssd.h"
|
||||
#include <wayland-util.h>
|
||||
|
||||
enum action_mouse_did {
|
||||
enum action_mouse_did
|
||||
{
|
||||
MOUSE_ACTION_DOUBLECLICK,
|
||||
MOUSE_ACTION_NONE
|
||||
};
|
||||
|
||||
struct mousebind {
|
||||
enum ssd_part_type context; /* ex: titlebar */
|
||||
uint32_t button; /* ex: BTN_LEFT, BTN_RIGHT from linux/input_event_codes.h */
|
||||
enum action_mouse_did mouse_action; /* ex: doubleclick, press, drag, etc */
|
||||
const char* action; /* what to do because mouse did previous action */
|
||||
const char* command;
|
||||
|
||||
/* ex: BTN_LEFT, BTN_RIGHT from linux/input_event_codes.h */
|
||||
uint32_t button;
|
||||
|
||||
/* ex: doubleclick, press, drag, etc */
|
||||
enum action_mouse_did mouse_action;
|
||||
|
||||
/* what to do because mouse did previous action */
|
||||
const char *action;
|
||||
|
||||
const char *command;
|
||||
struct wl_list link;
|
||||
};
|
||||
|
||||
struct mousebind*
|
||||
mousebind_create(const char* context_str, const char* mouse_button_str,
|
||||
const char* action_mouse_did_str, const char* action,
|
||||
const char* command);
|
||||
struct mousebind *
|
||||
mousebind_create(const char *context_str, const char *mouse_button_str,
|
||||
const char *action_mouse_did_str, const char *action, const char *command);
|
||||
|
||||
#endif /* __LABWC_MOUSEBIND_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue