aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md (follow)
Commit message (Collapse)AuthorAgeLines
...
| * changelog: prepare for 1.6.11.6.1Daniel Eklöf2020-12-21-3/+0
| |
| * changelog: mention -Wno-profile-instr-unprofiledDaniel Eklöf2020-12-21-0/+2
| |
| * changelog: mention --seed in in generate-alt-random.puDaniel Eklöf2020-12-21-0/+5
| |
| * generate-alt-random: ioctl(TIOCGWINSZ) may fail in run inside a containerDaniel Eklöf2020-12-21-0/+1
| | | | | | | | | | | | This _should_ only happen when we’re doing a partial PGO build, since then the script is run in the parent terminal. In this case, the user is expected to use --rows/--cols anyway.
| * changelog: use -std=c11 instead of -std=c18Daniel Eklöf2020-12-21-0/+4
| |
* | generate-alt-random: ioctl(TIOCGWINSZ) may fail in run inside a containerDaniel Eklöf2020-12-21-0/+4
| | | | | | | | | | | | This _should_ only happen when we’re doing a partial PGO build, since then the script is run in the parent terminal. In this case, the user is expected to use --rows/--cols anyway.
* | changelog: use -std=c11 instead of -std=c18Daniel Eklöf2020-12-21-0/+2
| |
* | Merge branch 'releases/1.6'Daniel Eklöf2020-12-20-3/+11
|\|
| * changelog: update ‘contributors’Daniel Eklöf2020-12-20-0/+3
| |
| * changelog: remove trailing ‘5’Daniel Eklöf2020-12-20-1/+1
| |
| * render: fix rounding error when calculating background color with alphaDaniel Eklöf2020-12-20-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We use pre-multiplied alpha color channels, but were having bad rounding errors due to the alpha divider being truncated to an integer. The algorithm for pre-multiplying a color channel is: alpha_divider = 0xffff / alpha pre_mult_color = color / alpha_divider In order to fix the rounding errors, we could turn ‘alpha_divider’ into a double. That however would introduce a performance penalty since now we’d need to do floating point math for each cell. The algorithm can be trivially converted to: pre_mult_color = color * alpha / 0xffff Since both color and alpa values are < 65536, the multiplication is “safe”; it will not overflow an uint32_t. Closes #249
| * changelog: mention meson dependency fixDaniel Eklöf2020-12-20-0/+5
| |
| * changelog: add 1.6.1 sectionDaniel Eklöf2020-12-20-0/+11
| |
| * changelog: fix link to "1.6.0" headingCraig Barnes2020-12-20-1/+1
| |
* | changelog: update ‘contributors’Daniel Eklöf2020-12-20-0/+2
| |
* | Merge branch 'subproject-wrap'Daniel Eklöf2020-12-20-0/+10
|\ \
| * | meson: use wrap files for fcft/tllist subprojectsCraig Barnes2020-12-19-0/+10
| | | | | | | | | | | | See: https://mesonbuild.com/Wrap-dependency-system-manual.html
* | | render: fix rounding error when calculating background color with alphaDaniel Eklöf2020-12-20-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We use pre-multiplied alpha color channels, but were having bad rounding errors due to the alpha divider being truncated to an integer. The algorithm for pre-multiplying a color channel is: alpha_divider = 0xffff / alpha pre_mult_color = color / alpha_divider In order to fix the rounding errors, we could turn ‘alpha_divider’ into a double. That however would introduce a performance penalty since now we’d need to do floating point math for each cell. The algorithm can be trivially converted to: pre_mult_color = color * alpha / 0xffff Since both color and alpa values are < 65536, the multiplication is “safe”; it will not overflow an uint32_t. Closes #249
* | | changelog: mention meson dependency fixDaniel Eklöf2020-12-20-0/+5
| | |
* | | changelog: fix link to "1.6.0" headingCraig Barnes2020-12-19-1/+1
|/ /
* / changelog: add new ‘unreleased’ sectionDaniel Eklöf2020-12-18-0/+11
|/
* changelog: prepare for 1.6.0Daniel Eklöf2020-12-18-6/+2
|
* changelog: move entry for dpi-aware up, to make it more visibleDaniel Eklöf2020-12-18-7/+7
|
* changelog: use code/monospace highlighting for foot.ini config optionsDaniel Eklöf2020-12-18-17/+17
|
* Merge branch 'dpi-aware-when-scaling-factor-is-one'Daniel Eklöf2020-12-18-4/+7
|\
| * fonts: size fonts using the scaling factor when output scaling is enabledDaniel Eklöf2020-12-17-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This extends the new ‘dpi-aware’ option with a new default value, ‘auto’. When set to ‘auto’, fonts are sized using monitors’ DPI when output scaling is disabled. When output scaling is enabled, fonts are instead sized using the scaling factor. The reasoning here is that a user that has enabled output scaling is obviously *not* relying on DPI scaling. Output scaling can also be a way to compensate for different viewing distances, in which case we do *not* want to break that by using DPI scaling. Users can still force DPI-only font sizing by setting ‘dpi-aware=yes’, or disable it completely by setting ‘dpi-aware=no’.
* | terminfo: add status line capabilities: hs, dsl, fsl and tslDaniel Eklöf2020-12-18-0/+3
|/ | | | | | | | | * hs - boolean, signals status line availability * tsl - to_status_line: begin an OSC 2 sequence (set window title) * fsl - from_status_line: OSC terminator * dsl - disable status line: \E]2;\E\\ - clears the window title Closes #242
* vt: don’t ignore extra private/intermediate charactersDaniel Eklöf2020-12-16-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Take ‘\E(#0’ for example - this is *not* the same as ‘\E(0’. Up until now, foot has however treated them as the same escape, because the handler for ‘\E(0’ didn’t verify there weren’t any _other_ private characters present. Fix this by turning the ‘private’ array into a single 4-byte integer. This allows us to match *all* privates with a single comparison. Private characters are added to the LSB first, and MSB last. This means we can check for single privates in pretty much the same way as before: switch (term->vt.private) { case ‘?’: ... break; } Checking for two (or more) is much uglier, but foot only supports a *single* escape with two privates, and no escapes with three or more: switch (term->vt.private) { case 0x243f: /* ‘?$’ */ ... break; } The ‘clear’ action remains simple (and fast), with a single write operation. Collecting privates is potentially _slightly_ more complex than before; we now need mask and compare, instead of simply comparing, when checking how many privates we already have. We _could_ add a counter, which would make collecting privates easier, but this would add an additional write to the ‘clean’ action which is really bad since it’s in the hot path.
* csi: implement DECRQM (DEC modes), for realDaniel Eklöf2020-12-16-0/+2
| | | | | Previously, we always returned ‘2 - reset’, instead of the actual state of the requested mode.
* changelog: ECMA-4*8*Daniel Eklöf2020-12-16-1/+1
|
* changelog: group ‘bell’ entries togetherDaniel Eklöf2020-12-16-3/+3
|
* config_font_parse(): return fail/successDaniel Eklöf2020-12-15-0/+1
|
* csi: SGR 21 is “double underline”, not “disable bold” (according to ECMA-48)Daniel Eklöf2020-12-14-0/+3
|
* term: enabling application synchronized updates clear pending grid refreshDaniel Eklöf2020-12-14-0/+2
| | | | | | | | | | | This fixes issues with de-synchronized frames being rendered; we may have scheduled a redraw earlier, that hasn’t yet triggered (probably because we’re waiting for a frame callback), when we enable application synchronized updates. This means we risk rendering a partially updated state when the frame callback finally arrives, if the application hasn’t yet ended its synchronized update.
* csi: fix sub-parameter versions of 38/48 SGR escapesDaniel Eklöf2020-12-12-0/+6
| | | | | | | | | | | | | | | | | | | Well this is embarrassing; the sub-parameter versions of the 38/48 SGR escapes all required an extra ‘:2’ that wasn’t supposed to be there, causing all the other sub-parameters to be shifted one step to the right. That is, foot expected e.g. 38:2:2:r:g:b, or 38:2:5:idx when the correct sequences are 38:2:cs:r:g:b and 38:5:idx. I.e. I mixed up the color-space ID (cs) of 38:2 with *type* of color: RGB or indexed. In addition to fixing this, this patch also adds support for a “bastard” version of the sub-parameter based RGB escapes, where the color-space identifier has been left out: e.g. 38:2:r:g:b. This sequence is invalid, but applications tend to “forget” the color-space ID...
* input: report mouse drag events also when the pointer is outside the gridDaniel Eklöf2020-12-11-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As long as the mouse button was *pressed* while the pointer was inside the grid, we want to keep reporting motion events until the button is released. Even when the pointer moves outside the grid (but in this case, the reported coordinates are bounded by the grid size). This patch also tries to improve multi-button handling (i.e. multiple buttons pressed at the same time), and the events we report to the client for these, in the following ways: * Motion events now report the *initial* button. That is, if you start a drag operation with the LEFT button, then press RIGHT (before releasing LEFT), keep reporting LEFT in the motion events. * Mouse release events are reported for *any* button, as long as the pointer is *inside* the grid, *or*, the button released was the button used to start a drag operation. The last point is important; if we have reported a button press followed by motion events (i.e. a drag operation), we need to report the button release, *even* if the pointer is outside the grid. Note that the client may receive unbalanced button press/release events in the following ways if the user pressed one, and then a second button *inside* the grid, then releases the *first* button (possibly outside the grid), and finally releases the *second* button *outside* the grid. In this case, both buttons will report press events. The first button will report a release event since it is the initial button in the drag operation. However, we don’t track the fact that the second button is being pressed, and thus if it is released outside the grid, it wont generate a release event.
* csi: ‘CSI s’ and ‘CSI u’ now saves/restores attributes and charsetsDaniel Eklöf2020-12-11-0/+2
|
* config: add ‘notify’ to possible values for ‘bell’ in foot.iniDaniel Eklöf2020-12-10-0/+3
| | | | | When `bell=notify`, foot will trigger a desktop notification when it receives a BEL in an unfocused window.
* osc: implement urxvt’s “OSC 777;notify”Daniel Eklöf2020-12-09-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | OSC 777 is URxvt’s generic escape to send commands to its perl extensions. The first parameter is the name of the extension, followed by its arguments. OSC 777;notify is a, if not well established, at least a fairly well known escape sequence to request a (desktop) notification. The syntax is: \e]777;notify;<title>;<body>\e\\ Neither title nor body is escaped in any way, meaning they should not contain a ‘;’. Foot will split title from body at the *first* ‘;’. Any remaining ‘;’ characters are treated as part of ‘body’. Instead of adding built-in support for the freedesktop notification specification (which would require us to link against at least dbus), add a new config option to foot.ini: ‘notify’. This option specifies the command to execute when a notification is received. ‘${title}’ and ‘${body}’ can be used anywhere, in any combination, and as many times as you want, in any of the command arguments. The default value is ‘notify-send -a foot -i foot ${title} ${body}’
* Merge branch 'remove-deprecated-things'Daniel Eklöf2020-12-09-0/+7
|\
| * config: remove support for scrollback-up and scrollback-downDaniel Eklöf2020-12-08-0/+1
| |
| * config: remove support for default.geometryDaniel Eklöf2020-12-08-0/+1
| |
| * config: remove support for default.scrollbackDaniel Eklöf2020-12-08-0/+1
| |
| * config: remove support for loading configuration from footrcDaniel Eklöf2020-12-08-0/+4
| |
* | changelog: don’t repeat ‘IME’Daniel Eklöf2020-12-08-1/+1
| |
* | changelog: add missing space in escape sequenceDaniel Eklöf2020-12-08-1/+1
| |
* | changelog: consistently use ‘CSI ? X h/l’ instead of `\E[?Xh/l`Daniel Eklöf2020-12-08-5/+5
| |
* | changelog: DECSET 737769 - enable/disable IMEDaniel Eklöf2020-12-07-0/+3
| |
* | changelog: ime: add link to INSTALL.mdDaniel Eklöf2020-12-07-1/+3
| |
* | changelog: IME supportDaniel Eklöf2020-12-07-0/+1
|/
* changelog: DECSET 27127 - modifies Esc to send \E[27127~ instead of \EDaniel Eklöf2020-12-07-0/+3
|
* config: ignore “self” when detecting key binding collisionsDaniel Eklöf2020-12-05-0/+5
| | | | | | | | | | | | | | | | | | | | | | | Previously, foot would not accept the following: [key-bindings] minimize=Escape minimize=Escape Now it does. I.e. key combos in the action being updated are ignored when detecting collisions. The example above is contrived; a real world example could be to remove certain combos from an action with multiple combos; perhaps to free up a combo for another action. Example: [search-bindings] cancel=Escape This would previously cause an error since `cancel=Control+g Escape` by default. Closes #233
* changelog: remove ‘crash when pasting non-textual clipboard content’Daniel Eklöf2020-12-05-4/+0
| | | | This crash doesn’t not exist in any release versions.
* Merge branch 'releases/1.5'Daniel Eklöf2020-12-01-13/+29
|\
| * keymap: add ‘CSI 27;<mod>;27~’ escapes for Esc with modifiersDaniel Eklöf2020-12-01-0/+1
| |
| * changelog: update contributorsDaniel Eklöf2020-12-01-0/+5
| |
| * sixel: fix crash when an explicit sixel size had a height less than 6 pixelsDaniel Eklöf2020-12-01-0/+1
| |
| * client: fix handling of "-m" command-line flagCraig Barnes2020-12-01-0/+1
| |
| * keymap: fix alt+return combosDaniel Eklöf2020-12-01-0/+1
| | | | | | | | | | | | | | | | All alt+return combos mapped to the same escape sequence as alt+return itself. With this patch, alt+<mod(s)>+return map to a standard ‘CSI 27;x;13~’ sequence.
| * keymap: use same lookup table for Tab and ISO_Left_TabDaniel Eklöf2020-12-01-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | With XKB, Shift+Tab maps to XKB_KEY_ISO_Left_Tab, not XKB_Key_Tab. Previously, we had two different lookup tables for the two. The tab table was correctly populated, while the ISO-left tab wasn’t. As a result, all Shift+Tab combos (except Shift+Tab itself) was wrong, and resulted in the same escape sequence as Shift+Tab. Fix by using the same table for both tab and ISO-left tab. Closes #210
| * config: enable allow-overflowing-double-width-glyphs by defaultDaniel Eklöf2020-12-01-0/+4
| |
| * changelog: fix link to readme#keypadDaniel Eklöf2020-12-01-2/+3
| |
| * readme/doc:foot.1: document the (new) keypad behaviorDaniel Eklöf2020-12-01-0/+7
| |
| * wayland: preempt render scheduling in ‘configure’ eventsDaniel Eklöf2020-12-01-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A configure event must be “committed”. In case of resizing, that means rendering a new frame and committing that surface. render_resize() will resize the grid and *schedule* a render refresh. However, if one is already pending, the refresh will take a very (relatively) long time - until the next frame callback is received. This poses a problem when the window is hidden, since in this case, the frame callback *never* comes. This in turn means we fail to commit a new surface in response to the ‘configure’ event. And that means the compositor needs to wait for a transaction timeout before continuing. The end effect is very slow and jerky window resizing when a hidden foot window is being resized. This can happen in tiled compositors, like Sway, where a window can be tabbed (and thus invisible), but still resized when its container is resized. Closes #190
| * changelog: add entry for 1.5.4Daniel Eklöf2020-12-01-0/+7
| |
* | selection: do not try to paste un-handled mime typesDaniel Eklöf2020-11-30-0/+2
| | | | | | | | Closes #230
* | keymap: add ‘CSI 27;<mod>;27~’ escapes for Esc with modifiersDaniel Eklöf2020-11-28-0/+1
| |
* | term: split cursor blink state into twoDaniel Eklöf2020-11-26-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two different escape sequences that can be used to set the cursor blink state: ‘CSI ? 12 h/l’ and ‘CSI Ps SP q’. Up until now, they both modified the same internal state in foot. This meant you could enable a blinking cursor with e.g. ‘CSI ? 12 h’ and then disable it with ‘CSI 2 SP q’. Since the ‘CSI ? 12’ escapes are used in the civis/cnorm/cvvis terminfo entries, applications often ended up disabling the blink state on exit (typically be emitting ‘cnorm’), requiring users to manually re-enable blinking. By splitting the internal state into two separate states, we can improve the situation. The cursor will blink if at least one of the two have been enabled. The setting in foot.ini sets the default state of the ‘CSI Ps SP q’ escape. This means if the user has enabled blinking in the configuration, the cursor will blink regardless of civis/cnorm/cvvis. Which probably is what the user wants. If the user has NOT enabled blinking, civis/cnorm/cvvis act as intended: cvvis blink, civis and cnorm do not. If an application overrides the cursor blink/style with ‘CSI Ps SP q’, that will override the user’s setting in foot.ini. But most likely that too is intended (for example, the user may have configured the application to use a different cursor style). And, a well written application will emit the ‘Se’ terminfo sequence on exit, which in foot is defined to ‘CSI SP q’, which will reset both the style and blink state to the user configured style/state. Closes #218
* | changelog: update contributor listDaniel Eklöf2020-11-25-0/+1
| |
* | resize: don’t reflow text on alt screenDaniel Eklöf2020-11-25-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Alt screen applications normally reflow/readjust themselves on a window resize. When we do it too, the result is graphical glitches/flashes since our re-flowed text is rendered in one frame, and the application re-flowed text soon thereafter. We can’t avoid rendering some kind of re-flowed frame, since we don’t know when, or even if, the application will update itself. To avoid glitches, we need to render, as closely as possible, what the application itself will render shortly. This is actually pretty simple; we just need to copy the visible content over from the old grid to the new grid. We don’t bother with text re-flow, but simply truncate long lines. To simplify things, we simply cancel any active selection (since often times, it will be corrupted anyway when the application redraws itself). Since we’re not reflowing text, there’s no need to translate e.g. the cursor position - we just keep the current position (but bounded to the new dimensions). Fun thing: ‘less’ gets corrupted if we don’t leave the cursor at the (new) bottom row. To handle this, we check if the cursor (before resize) is at the bottom row, and if so, we move it to the new bottom row. Closes #221
* | sixel: change default max size to 10000x10000Daniel Eklöf2020-11-23-0/+2
| | | | | | | | | | It used to be the size of the window. This caused images to be cropped when the application emitting them didn’t change the max size.
* | sixel: fix crash when an explicit sixel size had a height less than 6 pixelsDaniel Eklöf2020-11-23-0/+1
| |
* | foot/footclient: add short options to all command line optionsDaniel Eklöf2020-11-23-0/+2
| | | | | | | | | | | | | | | | | | | | | | e81388336750a20a2da98a57e9726c8ba1b481e3 added “missing” short command line options to footclient. Except they weren’t missing; they were intentionally missing short options and only supported long options. This commit makes the new/missing short options “official”, by adding documentation, zsh completions and including them in usage().
* | changelog: add issue ref to footclient -w/-WDaniel Eklöf2020-11-23-1/+1
| |
* | client: add new "--window-size-*" options to docs and CHANGELOG.mdCraig Barnes2020-11-22-0/+2
| |
* | changelog: update link to install instructions for PGODaniel Eklöf2020-11-22-1/+1
| |
* | changelog: add note about PGO without WaylandDaniel Eklöf2020-11-22-0/+9
| |
* | client: fix handling of "-m" command-line flagCraig Barnes2020-11-22-0/+1
| |
* | changelog: update contributorsDaniel Eklöf2020-11-21-0/+2
| |
* | config: add ‘dpi-aware’ option, defaulting to enabledDaniel Eklöf2020-11-19-0/+4
| | | | | | | | | | | | | | | | | | | | When disabled, foot no longers uses outputs’ DPI to scale the font. Instead, it uses the outputs’ scaling factor. That is, instead of appending “:dpi=123” to the fontconfig string, modify the “:pixelsize” or “:size” attribute. Closes #206
* | keymap: fix alt+return combosDaniel Eklöf2020-11-19-0/+1
| | | | | | | | | | | | | | | | All alt+return combos mapped to the same escape sequence as alt+return itself. With this patch, alt+<mod(s)>+return map to a standard ‘CSI 27;x;13~’ sequence.
* | keymap: use same lookup table for Tab and ISO_Left_TabDaniel Eklöf2020-11-19-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | With XKB, Shift+Tab maps to XKB_KEY_ISO_Left_Tab, not XKB_Key_Tab. Previously, we had two different lookup tables for the two. The tab table was correctly populated, while the ISO-left tab wasn’t. As a result, all Shift+Tab combos (except Shift+Tab itself) was wrong, and resulted in the same escape sequence as Shift+Tab. Fix by using the same table for both tab and ISO-left tab. Closes #210
* | changelog: bold-text-in-brightDaniel Eklöf2020-11-14-0/+3
| |
* | changelog: move pipe-* actions from ‘fixed’ to ‘added’Daniel Eklöf2020-11-13-4/+4
| |
* | config: enable allow-overflowing-double-width-glyphs by defaultDaniel Eklöf2020-11-13-0/+4
| |
* | changelog: fix link to readme#keypadDaniel Eklöf2020-11-12-2/+3
| |
* | Merge branch 'keypad-numlock-override'Daniel Eklöf2020-11-12-0/+3
|\ \ | | | | | | | | | Closes #194
| * | readme/doc:foot.1: document the (new) keypad behaviorDaniel Eklöf2020-11-11-0/+3
| | |
* | | wayland: preempt render scheduling in ‘configure’ eventsDaniel Eklöf2020-11-10-0/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A configure event must be “committed”. In case of resizing, that means rendering a new frame and committing that surface. render_resize() will resize the grid and *schedule* a render refresh. However, if one is already pending, the refresh will take a very (relatively) long time - until the next frame callback is received. This poses a problem when the window is hidden, since in this case, the frame callback *never* comes. This in turn means we fail to commit a new surface in response to the ‘configure’ event. And that means the compositor needs to wait for a transaction timeout before continuing. The end effect is very slow and jerky window resizing when a hidden foot window is being resized. This can happen in tiled compositors, like Sway, where a window can be tabbed (and thus invisible), but still resized when its container is resized. Closes #190
* | Merge branch 'releases/1.5'Daniel Eklöf2020-11-06-9/+16
|\|
| * selection: explicitly set direction when right-click extendingDaniel Eklöf2020-11-06-0/+2
| | | | | | | | | | | | | | Fixes an issue where right-click-and-dragging to extend a selection caused one cell being removed from the selection. Closes #180
| * input: don’t use seat->kbd_focus as terminal when processing a key pressDaniel Eklöf2020-11-06-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | When converting mouse scroll events to keyboard input (in alternate scroll mode), we need to use seat->mouse_focus, not seat->kbd_focus. To enable this, break out key press/release handling code to a separate function that takes an explicit term argument. Call this function from keyboard_key(), input_repeat() and in alternate scroll mode. Closes #179
| * tiocswinsz: fix compilation error on e.g. ppc64Daniel Eklöf2020-11-06-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On some platforms, TIOCSWINSZ has a very large value, > 0x80000000. On some platforms, the `request` argument to `ioctl(3)` is an `int`. For platforms where both of the above is true, gcc will warn (and error out if compiled with `-Werror`) on: ioctl(fd, TIOCSWINSZ, ...) To silence this warning, we need to cast `TIOCSWINSZ` to an integer. However, doing this on platforms where `request` is an `unsigned long` will result in `TIOCSWINSZ` being sign-extended (and thus we end up with an invalid value). It seems that casting to `unsigned int` works in both cases; it silences the long -> int conversion warning, while also preserving the correct value in all cases.
| * input: handle XKB errorsDaniel Eklöf2020-11-06-0/+2
| | | | | | | | | | | | | | | | | | | | | | * Don’t de-reference the xkb context/keymap/state if we failed to instantiate them. * Don’t try to send a translated utf8 key sequence if the translation failed. * Handle xkb_compose_state_get_utf8() and xkb_state_key_get_utf8() returning more than 64 bytes. This _may_ fix #171.
| * input: don’t allow diagonal resize when tiledDaniel Eklöf2020-11-06-0/+1
| |
| * wayland: properly restore window size when being un-tiledDaniel Eklöf2020-11-06-0/+1
| | | | | | | | | | | | | | | | Bind to xdg-shell version 2 if available, as this enables us to track our window’s ‘tiled’ state in the ‘configure’ events. This in turn allows us to stash the ‘old’ window size when being tiled, to be used again when restoring the window size when un-tiled.
| * input: don’t crash if xkbcommon cannot find a compose fileDaniel Eklöf2020-11-06-0/+4
| | | | | | | | | | | | | | | | Handle xkb_compose_table_new_from_locale() returning NULL. When this happens, log a warning that “dead keys” will be disabled, and make sure to never de-reference the compose table pointer. Closes #170
| * changelog: prepare for 1.5.3Daniel Eklöf2020-11-06-0/+5
| |
* | config: add support for pipe-* actions in mouse bindingsDaniel Eklöf2020-11-06-0/+4
| | | | | | | | Closes #183
* | selection: explicitly set direction when right-click extendingDaniel Eklöf2020-11-04-0/+2
| | | | | | | | | | | | | | Fixes an issue where right-click-and-dragging to extend a selection caused one cell being removed from the selection. Closes #180