sway-patched-tray-menu-github/include/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
..
desktop Implement inhibit_idle command 2019-03-24 19:26:12 -06: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.h bar_cmd_colors: remove add_color 2019-12-28 10:07:25 +01:00
config.h seat_cmd_keyboard_grouping: change keymap to smart 2019-12-16 12:03:11 -05:00
criteria.h criteria: make literal comparison for __focused__ values 2019-10-27 11:06:05 -04:00
decoration.h Handle views created after decoration mode is sent for xdg-shell 2018-08-06 15:20:30 +01:00
desktop.h Store geometry in the view and handle any floating view resizing 2018-08-18 15:10:06 +10:00
ipc-json.h Make json-c include respect pkg-config --cflags 2019-01-23 21:50:06 -05:00
ipc-server.h ipc: add an input event 2019-07-23 20:45:46 +03:00
layers.h Handle layer changes for layer shell surfaces 2019-10-27 11:07:18 -04:00
output.h output: Schedule idle frames if we do not render 2019-12-01 12:44:07 +01:00
security.h Move get_feature_policy to sway/security.c 2017-04-16 17:09:53 +03:00
server.h Add sway_surface 2019-11-17 20:18:42 +01:00
surface.h view: add max_render_time 2019-11-17 20:18:42 +01:00
swaynag.h Spawn swaynag as a wayland client 2019-04-14 12:41:59 +03:00
xdg_decoration.h Improve CSD logic 2018-09-27 22:51:37 +10:00
xwayland.h Parse missing i3 window types 2018-10-21 15:59:04 +02:00