swayfx/sway/commands
Ryan Dwyer 2024f1da72 Resize only current and immediate siblings rather than all siblings
For example, create layout V[view view view] and resize the leftmost
view using mod+rightclick. Previously, the edge between view 2 and 3
would be adjusted as well. Now this edge will remain constant, which
matches the behaviour of i3.

To do this operation correctly, the resize tiling seatop now keeps track
of two containers, as the container that resizes horizontally will be a
different container to the one which resizes vertically (one will be an
ancestor). The tiling resize seatop now figures out these containers
during the start of the operation and keeps references to them in the
event. A new function container_find_resize_parent has been introduced
to do this. This function is also used by the resize command.

During cursor motion, the seatop logic is similar to before, but now has
to choose the correct container to resize.

In resize.c, container_resize_tiled and resize_tiled have been merged
into one. One of them originally did nothing except pass the values
through to the other.

container_resize_tiled now takes a simplified approach where it just
finds the immediate siblings on either side and resizes them without
worrying about the others. The parellel_coord and parallel_size
functions are no longer needed and have been removed.
2019-01-15 08:01:21 +10:00
..
bar Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
input Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
output Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
seat Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
assign.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
bar.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
bind.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
border.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
client.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
create_output.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
default_border.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
default_floating_border.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
default_orientation.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
exec.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
exec_always.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
exit.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
floating.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
floating_minmax_size.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
floating_modifier.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
focus.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
focus_follows_mouse.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
focus_on_window_activation.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
focus_wrapping.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
font.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
for_window.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
force_display_urgency_hint.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
force_focus_wrapping.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
fullscreen.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
gaps.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
hide_edge_borders.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
include.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
input.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
kill.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
layout.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
mark.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
mode.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
mouse_warping.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
move.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
no_focus.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
nop.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
opacity.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
output.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
popup_during_fullscreen.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
reload.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
rename.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
resize.c Resize only current and immediate siblings rather than all siblings 2019-01-15 08:01:21 +10:00
scratchpad.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
seat.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
set.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
show_marks.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
smart_borders.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
smart_gaps.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
split.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
sticky.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
swap.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
swaybg_command.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
swaynag_command.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
tiling_drag.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
tiling_drag_threshold.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
title_align.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
title_format.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
titlebar_border_thickness.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
titlebar_padding.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
unmark.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
urgent.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
workspace.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
workspace_layout.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
ws_auto_back_and_forth.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
xwayland.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00