aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md (follow)
Commit message (Collapse)AuthorAgeLines
* changelog: prepare for 1.12.0Daniel Eklöf2022-04-22-5/+12
|
* meson: add -Dtests=false|true optionDaniel Eklöf2022-04-22-0/+4
| | | | | | | When set to false, no test binaries are neither built, nor executed (with “ninja test”). Closes #919
* search: don't modify search.start coord *before* finding next matchDaniel Eklöf2022-04-21-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The match logic uses the last start coordinate to determine which end points in the selection to update. This sometimes fails when the start coordinate has been changed by e.g. a key binding - the new start coordinate is incorrectly matched against the old-but-modified start coordinate, causing foot to e.g. *not* upate the selection start coordinate. Example: $ echo 'test\n\test\ntest' Then do a scrollback search for 'test. The first match is found correctly (the last 'test'), but searching for the previous match (ctrl+r) does not select the middle 'test'. Fix by passing the search direction to search_find_next(), and have _it_ calculate the coordinate to start search. There are three possibilities: * forward * backward * "backward", but at the same position The first two are used when searching for next/prev match with ctrl+s and ctrl+r. The last one is used when the search criteria is updated. In this case, we don't want to move to the previous match, *unless* the current match no longer matches.
* changelog: move “re-mapping input” from “changed” to “added”Daniel Eklöf2022-04-20-2/+2
|
* csi: implement CSI > 4n (reset modifyOtherKeys)Daniel Eklöf2022-04-19-0/+4
|
* search: fix next/prev not updating selection correctly when matches overlapDaniel Eklöf2022-04-17-0/+2
| | | | | When the new match overlapped with the old match, the selection wasn’t updated correctly.
* changelog: key binding overrides having no effect with footclientDaniel Eklöf2022-04-17-0/+2
|
* meson: install foot.ini to /etc/xdg/foot/foot.iniDaniel Eklöf2022-04-17-0/+4
| | | | Closes #1001
* url-mode: add a key binding that enables “persistent” URL modeDaniel Eklöf2022-04-17-0/+4
| | | | | | | This is an alternative to ‘show-urls-launch’, where we stay in URL mode after activating an URL. Closes #964
* changelog: scrollback search mode highlights all matchesDaniel Eklöf2022-04-17-0/+1
|
* changelog: [csd].hide-when-maximizedDaniel Eklöf2022-04-16-0/+2
|
* wayland: take (visible) border width into account on configure eventsDaniel Eklöf2022-04-16-0/+2
| | | | | | | | | | | When the compositor is asking us to resize ourselves, take our (visible) CSD borders into account. This is similar to how we already take the titlebar size into account. This fixes an issue where the window size “jumps” when the user starts an interactive resize, when csd.border-width > 0. This as been observed in GNOME.
* render: take visible border width into account when setting window geometryDaniel Eklöf2022-04-16-0/+2
| | | | This fixes e.g. window snapping in GNOME.
* client: add -E,--client-environmentDaniel Eklöf2022-04-12-0/+4
| | | | | | | | | | | | | | | | | When this option is used, the child process in the new terminal instance will inherit its environment from the footclient process, instead of the foot server’s. Implemented by sending (yet another) dynamic string list as part of the client -> server setup packet. When the new option is *not* used, the setup packet is now 2 bytes larger than before. On the server side, the slave process now uses execvpe() instead of execvp(). There’s plumbing to propagate a new ‘envp’ argument from term_init() all the way down to slave_exec(). If ‘envp’ is NULL, we use ‘environ’ instead (thus matching the old behavior of execvp()). Closes #1004
* changelog: improved compatibility with XTerm when modifyOtherKeys=2Daniel Eklöf2022-04-10-0/+2
|
* config: fallback to /etc/xdg if XDG_CONFIG_DIRS is unsetDaniel Eklöf2022-04-07-0/+2
| | | | Closes #1008
* config: add tweak option to allow disabling sixelsjvoisin2022-04-06-0/+2
| | | | Closes #950
* render: ensure an underline cursor is not positioned too lowDaniel Eklöf2022-04-06-0/+3
| | | | | | | | The underline cursor is positioned just below regular underlines. A bug in the positioning logic related to this, sometimes resulted in the cursor being thinner than what it should be, or even invisible. Fixes #1005
* Use circles for rendering light arc box-drawing characters.L3MON4D32022-04-03-0/+2
| | | | | | Ellipses can look weird when the font is narrow. Closes #988
* input: don’t allow non-significant modifiers when matching untranslated symbolsDaniel Eklöf2022-03-20-0/+2
| | | | | | | | | | | | | | | | | | When matching “untranslated” bindings (by matching the base symbol of the key, e.g. ctrl+shift+2 in US layout), require that no non-significant modifiers are active. This fixes an issue where AltGr was “ignored”, and would cause certain combinations to match a key binding. Example: ctrl+altgr+0, on many European layouts matched against the default ctrl+0 (reset the font size), instead of emitting ^] To make this work, we now need to filter out “locked” modifiers (e.g. NumLock and CapsLock). Otherwise having e.g. NumLock active would prevent *all* untranslated matching to fail. Closes #983
* selection: don’t translate \r to \n when pastingDaniel Eklöf2022-03-19-0/+2
| | | | | | | | | | | | | | | | | In non-bracketed paste mode, we translate \n to \r, and \r\n to \r. The latter matches XTerm, urxvt, alacritty and kitty. The former matches alacritty and kitty (xterm and urxvt just blindly replaces all \n occurrences with \r, meaning \r\n is translated to \r\r. For some reason, we then unconditionally translated all \r back to \n, regardless of whether bracketed paste was enabled or not. Unsure why/where this comes from, but it doesn't match any of the other terminal emulators I tested. One example where this caused issues is in older versions of nano (at least up to 2.9). Closes #980
* csi: add support for DECNKM private modeCraig Barnes2022-03-19-0/+5
| | | | | | | | | | | This is equivalent to DECKPAM/DECKPNM when enabled/disabled, but can also be saved/restored/queried with XTSAVE/XTRESTORE/DECRQM. See also: * https://vt100.net/docs/vt510-rm/DECNKM.html * https://vt100.net/docs/vt510-rm/DECKPAM.html * https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-PC-Style-Function-Keys
* osc: use four digits in OSC-4 and OSC-11 rgb:r/g/b repliesDaniel Eklöf2022-03-13-0/+2
| | | | Closes #971
* input: get_current_modifiers(): don’t crash if seat has no keyboardDaniel Eklöf2022-03-04-0/+4
| | | | Closes #963
* meson: stop using deprecated functions, require meson >= 0.58Daniel Eklöf2022-02-27-0/+1
| | | | | | * get_pkgconfig_variable() -> get_variable() * prog.path() -> prog.full_path() * meson.build_root() -> meson.global_build_root()
* Socket activation changelog entryMax Gautier2022-02-26-1/+1
|
* config/input: add scrollback-home|end key bindings (unbound by default)Daniel Eklöf2022-02-23-0/+2
|
* changelog: remapping input to custom escape sequencesDaniel Eklöf2022-02-16-0/+2
|
* config: do key binding collision handling in overridesDaniel Eklöf2022-02-16-0/+2
| | | | | This ensures we detect, and handle, collisions also for key-bindings specified as overrides.
* main: --server: don’t exit with code 0 on failureDaniel Eklöf2022-02-16-0/+3
| | | | | | | | | | | | | | | | | | A foot --server instance would exit with code 0, even on failure, if the number of currently open terminal instances were 0. This is because ‘ret’ assumed failure, and then tried to set it to ‘success’ after the even loop had terminated, basted on the server’s current state. Fix by: * set ‘ret’ to success just before entering the event loop * set ‘ret’ to failure when we detect an FDM failure * don’t try to second-guess success/failure after having exited the event loop Closes #943
* csi/input: remove private mode 27127Craig Barnes2022-02-09-0/+5
| | | | This effectively reverts commit 31c73f0cf01e1d0bdcd1435136b010c1c1ab442c.
* changelog: fallback xcursorAshish SHUKLA2022-02-07-1/+1
|
* changelog: OSC-22Daniel Eklöf2022-02-07-0/+5
|
* changelog: crash in pipe-scrollbackDaniel Eklöf2022-02-07-0/+2
|
* changelog: scrollback wrap-around crossing selectionsDaniel Eklöf2022-02-07-0/+2
|
* changelog: mouse selections are finalized on window resizeDaniel Eklöf2022-02-07-0/+7
|
* changelog: “(null)” being logged as font-nameDaniel Eklöf2022-02-06-0/+2
|
* changelog: missing ‘wayland_client’ dependency in test-configDaniel Eklöf2022-02-06-0/+5
|
* changelog: add new ‘unreleased’ sectionDaniel Eklöf2022-02-05-0/+11
|
* changelog: prepare for 1.11.0Daniel Eklöf2022-02-05-4/+13
|
* fcft: adapt to API changes in fcft-3.xDaniel Eklöf2022-02-05-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fcft no longer uses wchar_t, but plain uint32_t to represent codepoints. Since we do a fair amount of string operations in foot, it still makes sense to use something that actually _is_ a string (or character), rather than an array of uint32_t. For this reason, we switch out all wchar_t usage in foot to char32_t. We also verify, at compile-time, that char32_t used UTF-32 (which is what fcft expects). Unfortunately, there are no string functions for char32_t. To avoid having to re-implement all wcs*() functions, we add a small wrapper layer of c32*() functions. These wrapper functions take char32_t arguments, but then simply call the corresponding wcs*() function. For this to work, wcs*() must _also_ be UTF-32 compatible. We can check for the presence of the __STDC_ISO_10646__ macro. If set, wchar_t is at least 4 bytes and its internal representation is UTF-32. FreeBSD does *not* define this macro, because its internal wchar_t representation depends on the current locale. It _does_ use UTF-32 _if_ the current locale is UTF-8. Since foot enforces UTF-8, we simply need to check if __FreeBSD__ is defined. Other fcft API changes: * fcft_glyph_rasterize() -> fcft_codepoint_rasterize() * font.space_advance has been removed * ‘tags’ have been removed from fcft_grapheme_rasterize() * ‘fcft_log_init()’ removed * ‘fcft_init()’ and ‘fcft_fini()’ must be explicitly called
* changelog: XF86Copy+XF86Paste are now recognized by defaultDaniel Eklöf2022-02-05-0/+4
|
* box-drawing: LIGHT ARC: check for sqrt() failuresDaniel Eklöf2022-02-04-0/+2
| | | | Closes #914
* sixel: DECGRI (repeat) with a count of 0 should emit a single sixelDaniel Eklöf2022-02-04-1/+2
|
* sixel: resize: truncate instead of failing, when new size exceeds max sizeDaniel Eklöf2022-02-04-0/+2
| | | | | If the size we’re trying to set exceeds the configured max size, truncate instead of failing.
* main: reset signal mask and signal handlers at startupDaniel Eklöf2022-02-04-0/+3
| | | | | | | | This ensures processes spawned by us (e.g. the shell, new terminal instances etc) don’t inherit a flawed signal mask, or having signals unknowingly ignored. Closes #854
* Merge branch 'fix-bash-completions'Daniel Eklöf2022-02-03-0/+2
|\
| * Fix bash completion for lists of short optionsNicolai Dagestad2022-02-03-0/+2
| |
* | wayland: remove workaround for sway-1.5 bug - slow resizing of hidden windowsDaniel Eklöf2022-02-03-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Sway-1.5, sway waits for configure ACKs from hidden windows when views are being resized. I.e. if you have e.g. a stacked view, with one or more windows currently not visible, and you resize the stack, then sway will emit configure events to all windows, and then wait for ACKs before rendering the resized view. The problem with this is that sway also does **not** call frame callbacks on hidden windows. So if we have rendered one frame, and thus registered a frame callback, we’ll never render any more frames until the window becomes visible again. Ergo, if you resize the view interactively, only the first resize actually happens. After that, all hidden views are “stuck”, causing ACK timeouts. We worked around this in foot by preempting the frame callback. I.e. destroying it, and rendering the frame anyway. This has fixed in sway-1.6, and thus we can remove the workaround.
* | extract: ensure line-based selections are terminated with a newlineDaniel Eklöf2022-02-03-0/+2
| | | | | | | | Closes #869
* | selection: don’t quote file URIs on the alt screenDaniel Eklöf2022-02-02-0/+2
|/ | | | Closes #379
* keymap: alt-tab (C-tab) now emits “ESC tab” by defaultDaniel Eklöf2022-02-01-0/+2
| | | | | | | | | | | | | | | | In our default mode (roughly equivalent to XTerm’s modifyOtherKeys=1), alt-tab now emits ESC-tab instead of CSI 27;3;9~. When modifyOtherKeys=2 is enabled (CSI >4;2m), alt-tab emits the “old” CSI 27 escape. This better matches XTerm’s behavior. Note that other alt-tab combos are ambiguous in XTerm, and thus they are left unchanged here (i.e. we keep emitting CSI 27 escapes for them). Closes #900
* changelog: search for last searched-for stringDaniel Eklöf2022-01-29-0/+2
|
* replace gettimeofday with clock_gettimePranjal Kole2022-01-15-0/+2
| | | | | | | | | | | | | POSIX.1-2008 has marked gettimeofday(2) as obsolete, recommending the use of clock_gettime(2) instead. CLOCK_MONOTONIC has been used instead of CLOCK_REALTIME because it is unaffected by manual changes in the system clock. This makes it better for our purposes, namely, measuring the difference between two points in time. tv_sec has been casted to long in most places since POSIX does not define the actual type of time_t.
* dcs: implement DECRQSSDaniel Eklöf2022-01-14-0/+7
| | | | | | | | | | | This patch adds support for DECRQSS (request Selection or Setting), for the following sub-queries: * DECSTBM Set Top and Bottom Margins * SGR Set Graphic Rendition * DECSCUSR Set Cursor Style Closes #798
* changelog: XTGETTCAPDaniel Eklöf2022-01-14-1/+3
|
* changelog: improved handling of incompatible localesDaniel Eklöf2022-01-13-0/+5
|
* input: reset mouse button click counter when mouse movesDaniel Eklöf2022-01-13-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As described in #883, creating a block selection (with ctrl+BTN_LEFT), then *quickly* (within 300ms from) creating a new one, will, in fact, _not_ create a new block selection, but a ‘select-word-whitespace’ selection (ctrl+BTN_LEFT-2). A similar effect can be seen with plain selections (BTN_LEFT). Click and drag to make a selection, but *release*, and make a new selection within 300ms from the initial button press, and the new selection is suddenly a word-based selection. This happens because triggering a binding does *not* reset the button click counter. So, shouldn’t we just do that? No, because we rely on this behavior to handle single-, double- and triple-click actions. If we were to reset the button click handler, then we’d have to instead delay triggering the first action with 300ms, which would make things appear laggy. If we don’t do this, it would be impossible to double- and triple-click, since the single-click action would keep resetting the click counter. This patch takes a slightly different approach; we reset the click counter when the mouse has moved “too much”. For now, “too much” is when the cursor has moved to a different cell. This way, single-, double- and triple-clicks continue to work as before. But, creating actual selections, and then quickly releasing and starting a new selection produces the expected results. Closes #883
* input: reset view when pasting from primaryDaniel Eklöf2022-01-11-0/+2
| | | | | We’re already doing this for keyboard input, and regular clipboard pastes.
* changelog: fixed failing to launch when exec(3):ed with an empty argvDaniel Eklöf2022-01-01-0/+1
|
* SGR-Pixels mouse mode, closes #762Autumn Lamonte2022-01-01-1/+3
|
* render: csd: scale border width when rendering the CSD border’s visible partDaniel Eklöf2021-12-29-0/+2
|
* render: scale the width out the outline of the unfocused block cursorDaniel Eklöf2021-12-28-0/+3
|
* input: apply scrollback.multplier in alterate scroll modeDaniel Eklöf2021-12-28-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Before this patch, foot only applied [scrollback].multiplier on the normal screen, never the alt screen. However, scrolling can be done in two ways on the alt screen: If the application has enabled mouse support, we simply pass on the mouse scroll events to the application. Here, it makes sense to not apply the multiplier, and instead let the application choose how much to scroll for each scroll event. But, if the application has not enabled mouse support, we can still scroll by simulating the arrow keys being pressed - alternate scrolling (private mode 1007). This is enabled by default in foot (but can be disabled in foot.ini with the [mouse].alternate-scroll-mode setting). In this mode, it makes more sense to apply the multiplier. And that’s what this patch changes - the multiplier is now applied, on the alt screen, when the application has not enabled mouse support, and alternate scrolling has been enabled in foot. Closes #859
* changelog: irc+ircs added to default value of url.protocolsDaniel Eklöf2021-12-27-0/+2
|
* term: print: erase existing OSC-8 URIDaniel Eklöf2021-12-26-0/+2
| | | | | | | | | | If we have an “active” OSC-8 URI, term_print() would correctly replace an existing URI with the new one. But, if we don’t have an active URI, an existing URI was not erased. This can be reproduced with e.g echo -e '\e]8;;http://foo.bar\e\\foobar\e]8;;\e\\\b\b\b\b\b😀\n'
* changelog: grammarDaniel Eklöf2021-12-23-2/+2
|
* render: make sure ‘maximized’ button doesn’t use negative coordinatesDaniel Eklöf2021-12-22-0/+2
|
* config: error out on empty key- or mouse bindingDaniel Eklöf2021-12-18-0/+2
| | | | Closes #851
* shm: get_buffer(): make sure buffer->busy is setDaniel Eklöf2021-12-18-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | When going through the cached buffers, we only set buffer->busy on the *first* re-usable buffer we found. In some cases, we will find more than one re-usable buffer. In this case, we select the “youngest” one (i.e the one most recently used, in the hopes that we can use damage tracking instead of re-rendering the entire buffer). If the “current” buffer is younger than the previously detected, re-usable, buffer, then we unref:ed the previously selected buffer, and replaced it with the current one. But, we did not sanitize it. That is, we did not: * set buffer->busy * clear its dirty region * clear its scroll damage That buffer would eventually get rendered to, and committed to the compositor. Later, the compositor would free it. And there, in our buffer_release() callback, we’d assert that buffer->busy was set. And fail. Closes #844
* themes: consistently use snake-case in theme namesDaniel Eklöf2021-12-18-0/+6
|
* input: kitty: don’t fallback to the XKB symbolDaniel Eklöf2021-12-16-0/+2
| | | | | | | | | | | When handling “generic” keys (i.e. keys not in the Kitty keymap), we use the pressed key’s Unicode codepoint as “key” in the kitty CSI. If we failed to convert the XKB symbol to a Unicode codepoint, we used to (before this patch), fallback to using the XKB symbol as is. This can never be correct... and it caused us to emit a meaningless CSI for XKB_KEY_ISO_Next_Group, which confused e.g. Kakoune.
* term: font_size_adjust: use DPI=96 when font is *not* scaled by DPIDaniel Eklöf2021-12-14-0/+6
| | | | Closes #842
* changelog: kitty kbd: add link to codeberg issueDaniel Eklöf2021-12-08-1/+1
|
* Merge branch 'releases/1.10'Daniel Eklöf2021-12-08-2/+1
|\
| * changelog: kitty: alternate keys: base layout key is implementedreleases/1.10Daniel Eklöf2021-12-08-2/+1
| |
* | Merge branch 'releases/1.10'Daniel Eklöf2021-12-08-7/+15
|\|
| * changelog: prepare for 1.10.3Daniel Eklöf2021-12-08-9/+3
| |
| * kitty: initial support for “report alternate key”Daniel Eklöf2021-12-08-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In this mode, the “shifted” and “base layout” keys are added to the CSIs, as sub-parameters to the “key” parameter. Note that this PR only implements the “shifted” key, not the “base layout key”. This is done by converting the original XKB symbol to it’s corresponding UTF-32 codepoint. If this codepoint is different from the one we use as “key” in the CSI, we add it as a sub-parameter. Related to #319
| * kitty: implement “report associated text”Daniel Eklöf2021-12-08-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this mode, key events that generate text now add a third CSI parameter, indicating the actual codepoint. Remember that we always use the *unshifted* key in the CSI escapes. With this mode, those CSI escapes now also included the text codepoint. I.e. what would have been emitted, had we not generated a CSI escape. As far as I can tell, this mode has no effect unless “report all keys as escape sequences” is enabled (reason being, without that, there aren’t any text events that generate CSIs - they’re always emitted as-is). Note that Kitty itself seems to be somewhat buggy in this mode. At least on Wayland, with my Swedish layout. For example ‘a’ and ‘A’ does generate the expected CSIs, but ‘å’ and ‘Å’ appears to be treated as non-text input. Furthermore, Kitty optimizes away the modifier parameter, if no modifiers are pressed (e.g. CSI 97;;97u), while we always emit the modifier (CSI 97;1;97u). Related to #319
| * grid: reload pointers into the uri range vector after insertingDaniel Eklöf2021-12-08-0/+1
| | | | | | | | | | | | | | Inserting elements into the URI range vector typically triggers a vector resize. This is done using realloc(). Sometimes this causes the vector to move, thus invalidating all existing pointers into the vector.
| * input: kitty: add support for “report all keys as escape codes”Daniel Eklöf2021-12-08-0/+2
| |
| * term: ensure cell dimensions are non-zeroDaniel Eklöf2021-12-08-0/+5
| | | | | | | | Closes #830
| * changelog: move entry to ‘unreleased’Daniel Eklöf2021-12-08-1/+6
| |
| * changelog: kitty: report eventsDaniel Eklöf2021-12-08-1/+2
| |
| * changelog: add new ‘unreleased’ sectionDaniel Eklöf2021-12-08-0/+11
| |
* | kitty: initial support for “report alternate key”Daniel Eklöf2021-12-08-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In this mode, the “shifted” and “base layout” keys are added to the CSIs, as sub-parameters to the “key” parameter. Note that this PR only implements the “shifted” key, not the “base layout key”. This is done by converting the original XKB symbol to it’s corresponding UTF-32 codepoint. If this codepoint is different from the one we use as “key” in the CSI, we add it as a sub-parameter. Related to #319
* | kitty: implement “report associated text”Daniel Eklöf2021-12-08-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this mode, key events that generate text now add a third CSI parameter, indicating the actual codepoint. Remember that we always use the *unshifted* key in the CSI escapes. With this mode, those CSI escapes now also included the text codepoint. I.e. what would have been emitted, had we not generated a CSI escape. As far as I can tell, this mode has no effect unless “report all keys as escape sequences” is enabled (reason being, without that, there aren’t any text events that generate CSIs - they’re always emitted as-is). Note that Kitty itself seems to be somewhat buggy in this mode. At least on Wayland, with my Swedish layout. For example ‘a’ and ‘A’ does generate the expected CSIs, but ‘å’ and ‘Å’ appears to be treated as non-text input. Furthermore, Kitty optimizes away the modifier parameter, if no modifiers are pressed (e.g. CSI 97;;97u), while we always emit the modifier (CSI 97;1;97u). Related to #319
* | grid: reload pointers into the uri range vector after insertingDaniel Eklöf2021-12-08-0/+1
| | | | | | | | | | | | | | Inserting elements into the URI range vector typically triggers a vector resize. This is done using realloc(). Sometimes this causes the vector to move, thus invalidating all existing pointers into the vector.
* | input: kitty: add support for “report all keys as escape codes”Daniel Eklöf2021-12-06-0/+2
| |
* | Merge branch 'ensure-cell-dimensions-are-non-zero'Daniel Eklöf2021-12-06-0/+5
|\ \ | | | | | | | | | Closes #830
| * | term: ensure cell dimensions are non-zeroDaniel Eklöf2021-12-04-0/+5
| | | | | | | | | | | | Closes #830
* | | changelog: move entry to ‘unreleased’Daniel Eklöf2021-12-04-1/+3
| | |
* | | changelog: kitty: report eventsDaniel Eklöf2021-12-04-1/+2
|/ /
* | config, doc, changelog: move selection-override-modifiers to [mouse-bindings] and validate other ↵feeptr@codeberg.org2021-12-02-3/+3
| | | | | | | | | | | | case specifically, check for conflicts both when mouse bindings are set and when the selection-override-modifiers setting itself is set
* | changelog: list new mouse.selection-override-modifiers optionfeeptr@codeberg.org2021-12-02-0/+6
| |
* | changelog: add new ‘unreleased’ sectionDaniel Eklöf2021-12-02-0/+11
|/
* changelog: prepare for 1.10.2Daniel Eklöf2021-12-02-6/+4
|
* osc-4: don’t update the color of cells with RGB fg/bg colorsDaniel Eklöf2021-12-01-0/+2
| | | | | | | | | | | | | | | | | | | | OSC 4/104 changes the 256-color palette. We also run a pass over the visible cells, and update their colors. This was previously done by comparing the actual color of the cell, with the “old” color in the palette. If they matched, the cell was updated. This meant that cells with an RGB color (i.e. not a palette based color) was also updated, _if_ its color matched the palette color. Now that each cell tracks its color *source*, we can ignore all non-palette based cells. Note that this still isn’t perfect: if the palette contains multiple entries with the same color, we’ll end up updating the “wrong” cells. Closes #678
* input: always update the xcursor shape in pointer enter/motion eventsDaniel Eklöf2021-12-01-0/+1
| | | | | | | | | | | | | | | | Now that term_xcursor_update_for_seat() takes the current surface into account (i.e. doesn’t assume the cursor is over the main grid), there’s no longer any need to call render_xcursor_set() directly. Thus, we can simply call term_xcursor_update_for_seat() on **all** pointer enter and motion events. As long as we take care to update the internal state to reflect the, possibly new, current surface before doing so. Also make sure to **always** reset the seat’s “current” xcursor pointer on pointer leave events. This is done without actually sending anything to the compositor, but is necessary to ensure that we *do* send a request to update the xcursor on the next pointer enter event.