diff options
author | Uli Schlachter <psychon@znc.in> | 2018-04-15 10:32:30 +0200 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2018-04-15 10:32:30 +0200 |
commit | 3728abd1fc325bccf02499e3e363791d6f986ebc (patch) | |
tree | cf56325043ddc7c39d5a29f8c0c276090dbaed72 /backend | |
parent | 63763d327969a17af43ccaf8fe4c6da941f8efcb (diff) |
handle_x11_event: Remove return value
This function always returns "false", so its return type can simply be
changed to void.
Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'backend')
-rw-r--r-- | backend/x11/backend.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c index 02f5ef6f..64c6973b 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -65,10 +65,10 @@ void x11_output_layout_get_box(struct wlr_x11_backend *backend, box->height = max_y - min_y; } -static bool handle_x11_event(struct wlr_x11_backend *x11, +static void handle_x11_event(struct wlr_x11_backend *x11, xcb_generic_event_t *event) { if (x11_handle_input_event(x11, event)) { - return false; + return; } switch (event->response_type & XCB_EVENT_RESPONSE_TYPE_MASK) { @@ -103,8 +103,6 @@ static bool handle_x11_event(struct wlr_x11_backend *x11, break; } } - - return false; } static int x11_event(int fd, uint32_t mask, void *data) { @@ -117,11 +115,8 @@ static int x11_event(int fd, uint32_t mask, void *data) { xcb_generic_event_t *e; while ((e = xcb_poll_for_event(x11->xcb_conn))) { - bool quit = handle_x11_event(x11, e); + handle_x11_event(x11, e); free(e); - if (quit) { - break; - } } return 0; |