mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-05-29 21:38:03 -04:00
osc: kitty_clipboard_query(): reply with EPERM if OSC pasting has been disabled
This is already being done in when reading and writing the clipboard, but we had missed the query code path.
This commit is contained in:
parent
4b64ed0a49
commit
e85209e736
1 changed files with 6 additions and 0 deletions
6
osc.c
6
osc.c
|
|
@ -326,6 +326,12 @@ kitty_clipboard_query(struct terminal *term, bool primary)
|
|||
|
||||
LOG_DBG("OSC-5522: query mime-types: primary=%d", primary);
|
||||
|
||||
if (!term_osc_paste_allowed(term)) {
|
||||
LOG_DBG("OSC-5522: ignoring paste request: disabled in configuration");
|
||||
term_to_slave(term, "\033]5522;type=read:status=EPERM\033\\", 31);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Find a seat in which the terminal has focus */
|
||||
struct seat *seat = term_first_focused_seat(term);
|
||||
if (seat == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue