swayfx/include
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
..
sway Avoid numerical instability in resize 2020-01-01 10:14:29 -07:00
swaybar parse_color: return success + drop fallback color 2019-12-28 10:07:25 +01:00
swaynag swaynag: revamp type configs 2019-04-20 09:14:41 -06:00
background-image.h Initial swaylock port 2018-04-04 18:47:48 -04:00
cairo.h swaybg: split into standalone project 2019-04-25 18:44:28 +03:00
ipc-client.h swaymsg: add timeout and type checks 2019-04-17 09:07:08 +03:00
ipc.h ipc: add an input event 2019-07-23 20:45:46 +03:00
list.h list.c: rename free_flat_list to list_free_items_and_destroy 2018-12-09 01:15:38 +00:00
log.h Use -fmacro-prefix-map to strip build path 2019-07-15 16:35:50 -04:00
loop.h Remove timerfd from loop implementation 2018-10-15 00:26:27 +10:00
meson.build Address review comments 2018-03-28 14:43:23 -04:00
pango.h Fix pango escaping and refactor escape_markup_text 2018-09-22 18:33:28 +10:00
pool-buffer.h client/pool-buffer: munmap in destroy_buffer 2018-05-27 14:09:48 +01:00
stringop.h input_cmd_xkb_file: allow shell path expansion 2019-11-21 10:36:15 -05:00
util.h cmd_client_*: refactor duplicated code 2019-12-28 10:07:25 +01:00