diff options
| author | Riley Beckett <rbeckettvt@gmail.com> | 2025-10-23 23:21:22 -0400 |
|---|---|---|
| committer | Riley Beckett <rbeckettvt@gmail.com> | 2025-10-23 23:21:22 -0400 |
| commit | b07d30e30de90f7cb17e7e91ed71ac5af9326722 (patch) | |
| tree | ce102bdacf09f18dca8a00d98374234847758683 /main.c | |
| parent | 34e31d33defb922ad464857487469c5659bbefcc (diff) | |
replace all spaces with tabs for indentation
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 56 |
1 files changed, 28 insertions, 28 deletions
@@ -115,33 +115,33 @@ void poll_events(client_state* state) { [KEYREPEAT_FD] = { state->key_repeat_timer_fd, POLLIN }, }; - bool event = false; - while (!event) { - while (wl_display_prepare_read(state->display) != 0) { - if (wl_display_dispatch_pending(state->display) > 0) { - return; - } - } - if (poll(fds, sizeof(fds) / sizeof(fds[0]), -1) == -1) { - wl_display_cancel_read(state->display); - return; - } - if (fds[DISPLAY_FD].revents & POLLIN) { - wl_display_read_events(state->display); - if (wl_display_dispatch_pending(state->display) > 0) - event = true; - } - else { - wl_display_cancel_read(state->display); - } - if (fds[KEYREPEAT_FD].revents & POLLIN) { - uint64_t repeats; - if (read(state->key_repeat_timer_fd, &repeats, sizeof(repeats)) == 8) { - for (uint64_t i = 0; i < repeats; i++) { + bool event = false; + while (!event) { + while (wl_display_prepare_read(state->display) != 0) { + if (wl_display_dispatch_pending(state->display) > 0) { + return; + } + } + if (poll(fds, sizeof(fds) / sizeof(fds[0]), -1) == -1) { + wl_display_cancel_read(state->display); + return; + } + if (fds[DISPLAY_FD].revents & POLLIN) { + wl_display_read_events(state->display); + if (wl_display_dispatch_pending(state->display) > 0) + event = true; + } + else { + wl_display_cancel_read(state->display); + } + if (fds[KEYREPEAT_FD].revents & POLLIN) { + uint64_t repeats; + if (read(state->key_repeat_timer_fd, &repeats, sizeof(repeats)) == 8) { + for (uint64_t i = 0; i < repeats; i++) { type_key(state, state->repeat_key); - } - event = true; - } - } - } + } + event = true; + } + } + } } |
