sway-patched-tray-menu-github/sway
S. Christoffer Eliesen 6750975b9f arrange_windows_r: Round pixels to match reality, fixes calculations.
If the width or height of a container can't be evenly distributed to its
children, then the layout algorithm still thought it got it right (due
to using decimals) which caused a gap of one or more pixels for some
window arrangements.

This is fixed by this patch by first rounding off the width and height
(so that decimals are never introduced) and then adjusting the last
view in a container to fill the remaining pixels (which now is counted
correctly due to the decimals being removed).

Also, due to the way gaps are implemented, an odd sized gap can never be
aligned properly, so just adjust to closest even number.
2015-12-28 14:58:17 +01:00
..
CMakeLists.txt arrange_windows_r: Round pixels to match reality, fixes calculations. 2015-12-28 14:58:17 +01:00
commands.c Initialize id, part two 2015-12-22 08:21:13 -05:00
config.c Use SYSCONFDIR as recommended 2015-12-23 12:22:48 +01:00
container.c container: Fix inner gaps against screen edge. 2015-12-20 21:23:20 +01:00
criteria.c criteria: Code formatting. 2015-11-25 14:59:07 +01:00
debug_log.c remove unused execinfo.h include from debug_log.c 2015-12-21 18:57:26 +01:00
extensions.c extensions: Track panels by wl_resource, position per panel. 2015-12-20 12:54:34 +01:00
focus.c Trigger ipc_event_workspace in all cases 2015-12-21 23:07:52 +01:00
handlers.c extensions: Track panels by wl_resource, position per panel. 2015-12-20 12:54:34 +01:00
input_state.c Lookup dragging key when in dragging mode 2015-12-14 22:44:50 +01:00
ipc-server.c Trigger ipc_event_workspace in all cases 2015-12-21 23:07:52 +01:00
layout.c arrange_windows_r: Round pixels to match reality, fixes calculations. 2015-12-28 14:58:17 +01:00
main.c Detect proprietary AMD drivers too 2015-12-14 18:13:44 +02:00
output.c output: Support multiple adjacent outputs. 2015-11-16 21:32:18 +01:00
resize.c return after disconnect ipc client and minor checks 2015-09-29 07:19:10 -07:00
sway.1.txt move manpages to subfolders 2015-12-02 12:49:01 +02:00
sway.5.txt Add floating_modifier extension to manpage 2015-12-11 18:04:27 +01:00
workspace.c Fix default workspace name generation 2015-12-18 18:52:51 -05:00