6750975b9f
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.
52 lines
744 B
CMake
52 lines
744 B
CMake
include_directories(
|
|
${PROTOCOLS_INCLUDE_DIRS}
|
|
${WLC_INCLUDE_DIRS}
|
|
${PCRE_INCLUDE_DIRS}
|
|
${JSONC_INCLUDE_DIRS}
|
|
${XKBCOMMON_INCLUDE_DIRS}
|
|
)
|
|
|
|
add_executable(sway
|
|
commands.c
|
|
config.c
|
|
container.c
|
|
criteria.c
|
|
debug_log.c
|
|
extensions.c
|
|
focus.c
|
|
handlers.c
|
|
input_state.c
|
|
ipc-server.c
|
|
layout.c
|
|
main.c
|
|
output.c
|
|
resize.c
|
|
workspace.c
|
|
)
|
|
|
|
target_link_libraries(sway
|
|
sway-common
|
|
sway-protocols
|
|
${WLC_LIBRARIES}
|
|
${XKBCOMMON_LIBRARIES}
|
|
${PCRE_LIBRARIES}
|
|
${JSONC_LIBRARIES}
|
|
${WAYLAND_SERVER_LIBRARIES}
|
|
m
|
|
)
|
|
|
|
install(
|
|
TARGETS sway
|
|
RUNTIME
|
|
DESTINATION bin
|
|
COMPONENT runtime
|
|
)
|
|
install(
|
|
FILES ${PROJECT_SOURCE_DIR}/config
|
|
DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/sway/
|
|
COMPONENT configuration
|
|
)
|
|
|
|
add_manpage(sway 1)
|
|
add_manpage(sway 5)
|