aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-12-24 14:21:37 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-12-28 16:10:03 +0000
commita835436537098966c817d0d7aafbf01ed43589fa (patch)
tree77527125a50981ad23858ad542a6fd029fcb548d
parentchangelog: irc+ircs added to default value of url.protocols (diff)
term_mouse_grabbed(): make ‘seat’ argument const
-rw-r--r--terminal.c5
-rw-r--r--terminal.h2
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);