From a835436537098966c817d0d7aafbf01ed43589fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 24 Dec 2021 15:21:37 +0100 Subject: [PATCH] =?UTF-8?q?term=5Fmouse=5Fgrabbed():=20make=20=E2=80=98sea?= =?UTF-8?q?t=E2=80=99=20argument=20const?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- terminal.c | 5 +++-- terminal.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/terminal.c b/terminal.c index f8612c46..4e0412a7 100644 --- a/terminal.c +++ b/terminal.c @@ -2827,10 +2827,11 @@ report_mouse_motion(struct terminal *term, int encoded_button, int row, int col) } bool -term_mouse_grabbed(const struct terminal *term, struct seat *seat) +term_mouse_grabbed(const struct terminal *term, const struct seat *seat) { /* - * Mouse is grabbed by us, regardless of whether mouse tracking has been enabled or not. + * Mouse is grabbed by us, regardless of whether mouse tracking + * has been enabled or not. */ xkb_mod_mask_t mods; diff --git a/terminal.h b/terminal.h index 38314fa4..eaedf231 100644 --- a/terminal.h +++ b/terminal.h @@ -759,7 +759,7 @@ void term_mouse_up( void term_mouse_motion( struct terminal *term, int button, int row, int col, bool shift, bool alt, bool ctrl); -bool term_mouse_grabbed(const struct terminal *term, struct seat *seat); +bool term_mouse_grabbed(const struct terminal *term, const struct seat *seat); void term_xcursor_update(struct terminal *term); void term_xcursor_update_for_seat(struct terminal *term, struct seat *seat);