glazier

the original window manipulator
Log | Files | Refs | Submodules | README | LICENSE

commit 309eeffbd388bf4e609ac2a97255833324351ed7
parent 170adc9db2caeeacfaded81d7892d9bdc245ec69
Author: Willy Goiffon <dev@z3bra.org>
Date:   Sat, 26 Oct 2019 21:14:43 +0200

Align declaration

Diffstat:
glazier.c | 72++++++++++++++++++++++++++++++++++++------------------------------------
1 file changed, 36 insertions(+), 36 deletions(-)

diff --git a/glazier.c b/glazier.c @@ -56,49 +56,49 @@ xcb_window_t curwid; struct cursor_t cursor; static const char *evname[] = { - [0] = "EVENT_ERROR", - [XCB_CREATE_NOTIFY] = "CREATE_NOTIFY", - [XCB_DESTROY_NOTIFY] = "DESTROY_NOTIFY", - [XCB_BUTTON_PRESS] = "BUTTON_PRESS", - [XCB_BUTTON_RELEASE] = "BUTTON_RELEASE", - [XCB_MOTION_NOTIFY] = "MOTION_NOTIFY", - [XCB_ENTER_NOTIFY] = "ENTER_NOTIFY", - [XCB_CONFIGURE_NOTIFY] = "CONFIGURE_NOTIFY", - [XCB_KEY_PRESS] = "KEY_PRESS", - [XCB_FOCUS_IN] = "FOCUS_IN", - [XCB_FOCUS_OUT] = "FOCUS_OUT", - [XCB_KEYMAP_NOTIFY] = "KEYMAP_NOTIFY", - [XCB_EXPOSE] = "EXPOSE", + [0] = "EVENT_ERROR", + [XCB_CREATE_NOTIFY] = "CREATE_NOTIFY", + [XCB_DESTROY_NOTIFY] = "DESTROY_NOTIFY", + [XCB_BUTTON_PRESS] = "BUTTON_PRESS", + [XCB_BUTTON_RELEASE] = "BUTTON_RELEASE", + [XCB_MOTION_NOTIFY] = "MOTION_NOTIFY", + [XCB_ENTER_NOTIFY] = "ENTER_NOTIFY", + [XCB_CONFIGURE_NOTIFY] = "CONFIGURE_NOTIFY", + [XCB_KEY_PRESS] = "KEY_PRESS", + [XCB_FOCUS_IN] = "FOCUS_IN", + [XCB_FOCUS_OUT] = "FOCUS_OUT", + [XCB_KEYMAP_NOTIFY] = "KEYMAP_NOTIFY", + [XCB_EXPOSE] = "EXPOSE", [XCB_GRAPHICS_EXPOSURE] = "GRAPHICS_EXPOSURE", - [XCB_NO_EXPOSURE] = "NO_EXPOSURE", + [XCB_NO_EXPOSURE] = "NO_EXPOSURE", [XCB_VISIBILITY_NOTIFY] = "VISIBILITY_NOTIFY", - [XCB_UNMAP_NOTIFY] = "UNMAP_NOTIFY", - [XCB_MAP_NOTIFY] = "MAP_NOTIFY", - [XCB_MAP_REQUEST] = "MAP_REQUEST", - [XCB_REPARENT_NOTIFY] = "REPARENT_NOTIFY", + [XCB_UNMAP_NOTIFY] = "UNMAP_NOTIFY", + [XCB_MAP_NOTIFY] = "MAP_NOTIFY", + [XCB_MAP_REQUEST] = "MAP_REQUEST", + [XCB_REPARENT_NOTIFY] = "REPARENT_NOTIFY", [XCB_CONFIGURE_REQUEST] = "CONFIGURE_REQUEST", - [XCB_GRAVITY_NOTIFY] = "GRAVITY_NOTIFY", - [XCB_RESIZE_REQUEST] = "RESIZE_REQUEST", - [XCB_CIRCULATE_NOTIFY] = "CIRCULATE_NOTIFY", - [XCB_PROPERTY_NOTIFY] = "PROPERTY_NOTIFY", - [XCB_SELECTION_CLEAR] = "SELECTION_CLEAR", + [XCB_GRAVITY_NOTIFY] = "GRAVITY_NOTIFY", + [XCB_RESIZE_REQUEST] = "RESIZE_REQUEST", + [XCB_CIRCULATE_NOTIFY] = "CIRCULATE_NOTIFY", + [XCB_PROPERTY_NOTIFY] = "PROPERTY_NOTIFY", + [XCB_SELECTION_CLEAR] = "SELECTION_CLEAR", [XCB_SELECTION_REQUEST] = "SELECTION_REQUEST", - [XCB_SELECTION_NOTIFY] = "SELECTION_NOTIFY", - [XCB_COLORMAP_NOTIFY] = "COLORMAP_NOTIFY", - [XCB_CLIENT_MESSAGE] = "CLIENT_MESSAGE", - [XCB_MAPPING_NOTIFY] = "MAPPING_NOTIFY" + [XCB_SELECTION_NOTIFY] = "SELECTION_NOTIFY", + [XCB_COLORMAP_NOTIFY] = "COLORMAP_NOTIFY", + [XCB_CLIENT_MESSAGE] = "CLIENT_MESSAGE", + [XCB_MAPPING_NOTIFY] = "MAPPING_NOTIFY" }; static const struct ev_callback_t cb[] = { - /* event, function */ - { XCB_CREATE_NOTIFY, cb_create }, - { XCB_MAP_REQUEST, cb_mapreq }, - { XCB_BUTTON_PRESS, cb_mouse_press }, - { XCB_BUTTON_RELEASE, cb_mouse_release }, - { XCB_MOTION_NOTIFY, cb_motion }, - { XCB_ENTER_NOTIFY, cb_enter }, - { XCB_FOCUS_IN, cb_focus }, - { XCB_FOCUS_OUT, cb_focus }, + /* event, function */ + { XCB_CREATE_NOTIFY, cb_create }, + { XCB_MAP_REQUEST, cb_mapreq }, + { XCB_BUTTON_PRESS, cb_mouse_press }, + { XCB_BUTTON_RELEASE, cb_mouse_release }, + { XCB_MOTION_NOTIFY, cb_motion }, + { XCB_ENTER_NOTIFY, cb_enter }, + { XCB_FOCUS_IN, cb_focus }, + { XCB_FOCUS_OUT, cb_focus }, { XCB_CONFIGURE_REQUEST, cb_configreq }, };