swayfx/sway
Pedro Côrte-Real 8008344762 Avoid numerical instability in resize
Because the layout code rounds down the dimensions of the windows
resizing would often be off by one pixel. The width/height fraction
would not exactly reflect the final computed width and so the resize
code would end up calculating things wrong.

To fix this first snap the container size fractions to the pixel grid
and only then do the resize. Also use round() instead of floor() during
layout to avoid a slightly too small width. This applies in two cases:

1. For the container we are actually resizing using floor() might result
   in being 1px too small.
2. For the other containers it might result in resizing them down by 1px
   and then if the container being resized is the last all those extra
   pixels would make the resize too large.

Fixes #4391
2020-01-01 10:14:29 -07:00
..
commands Avoid numerical instability in resize 2020-01-01 10:14:29 -07:00
config Fix sway_log using non initialised output_config pointer 2019-12-31 15:56:32 +01:00
desktop Re-add support for wlr_output's atomic API 2019-12-30 11:24:11 -07:00
input Add virtual pointer protocol 2019-12-31 16:04:50 +01:00
tree Avoid numerical instability in resize 2020-01-01 10:14:29 -07:00
commands.c bar_cmd_colors: remove add_color 2019-12-28 10:07:25 +01:00
config.c cmd_client_*: refactor duplicated code 2019-12-28 10:07:25 +01:00
criteria.c criteria: make literal comparison for __focused__ values 2019-10-27 11:06:05 -04:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c add scale_filter output config option 2019-11-29 18:13:37 +01:00
ipc-server.c Remove all wayland-server.h includes 2019-07-27 17:16:56 -04:00
main.c Fix various memory leaks 2019-11-01 12:18:09 -04:00
meson.build Add seat <seat> idle_{inhibit,wake} <sources...> 2019-12-12 10:37:30 -05:00
security.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
server.c Add sway_surface 2019-11-17 20:18:42 +01:00
sway-bar.5.scd swaybar: complete barconfig_update event handling 2019-09-04 16:48:50 -10:00
sway-input.5.scd seat_cmd_keyboard_grouping: change keymap to smart 2019-12-16 12:03:11 -05:00
sway-ipc.7.scd Revert "fix bar_state_update/input event" 2019-12-02 19:57:06 +01:00
sway-output.5.scd add scale_filter output config option 2019-11-29 18:13:37 +01:00
sway.1.scd Update language in sway.desktop & sway(1) 2019-03-10 15:09:52 -04:00
sway.5.scd cmd_client_*: support optional args for i3 compat 2019-12-29 10:40:06 +01:00
swaynag.c Rename symbol set_cloexec to sway_set_cloexec, remove duplicates. 2019-11-01 12:41:08 -04:00
xdg_decoration.c Fix xdg-decoration unconfigured if set before first commit 2019-05-03 15:37:32 -06:00