diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 0ef8cab..6c74766 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,5 +1,4 @@ name: CI - on: push: branches: @@ -7,10 +6,21 @@ on: pull_request: branches: - master - jobs: + clang-format: + name: Check clang-format + runs-on: ubuntu-latest + container: archlinux:latest + steps: + - name: Install dependencies + run: | + pacman -Syu --noconfirm git clang diffutils + git config --global --add safe.directory $GITHUB_WORKSPACE + - uses: actions/checkout@v4 + - uses: fcitx/github-actions@clang-format check: name: Build and test + needs: clang-format runs-on: ubuntu-latest container: archlinux:latest strategy: diff --git a/src/imclient.c b/src/imclient.c index 35cc76b..5a15154 100644 --- a/src/imclient.c +++ b/src/imclient.c @@ -1486,12 +1486,14 @@ bool xcb_xim_unset_ic_focus(xcb_xim_t *im, xcb_xic_t ic) { return !fail; } -bool xcb_xim_forward_event(xcb_xim_t *im, xcb_xic_t ic, xcb_key_press_event_t *event) { - return xcb_xim_forward_event_full(im, ic, (im->event_sequence >> 16), event); +bool xcb_xim_forward_event(xcb_xim_t *im, xcb_xic_t ic, + xcb_key_press_event_t *event) { + return xcb_xim_forward_event_full(im, ic, (im->event_sequence >> 16), + event); } bool xcb_xim_forward_event_full(xcb_xim_t *im, xcb_xic_t ic, uint16_t sequence, - xcb_key_press_event_t *event) { + xcb_key_press_event_t *event) { xcb_xim_request_queue_t *queue = _xcb_xim_new_request(im, XCB_XIM_FORWARD_EVENT, 0, NULL, NULL); if (!queue) {