| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Achieved by introducing auto_group_bounds function that produces
the start/end indexes of a group inside an auto layot container.
|
| |
|
|\ |
|
| | |
|
| | |
|
|/
|
|
| |
This is more consistent with other Sway semantics.
|
| |
|
|
|
|
|
|
| |
- added L_AUTO_FIRST/LAST instead of using explicit layouts.
- when switching between auto layout that don't share the same major axis, invert the
width/height of their child views to preserve their relative proportions.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
For workspace containers, swayc_change_layout also changes ->layout alongside
->workspace_layout when it's a sensible thing to do. There is an additional test
for 'layout toggle' command which ensures that containers will be tiled
horizontally after toggling from tabbed or stacked.
|
|
|
|
|
| |
Add swayc_change_layout function, which changes either layout or
workspace_layout, depending on the container type.
|
| |
|
| |
|
| |
|
|
|
|
| |
Also reduces enum abuse, cc @minus7
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This commit removes has_* booleans from bar color struct. It also
generalizes of functions in commands/bar/colors.c.
|
|
|
|
|
| |
If these aren't defined in config, color settings without 'focused_'
prefix are used as a fallback.
|
| |
|
|
|
|
|
|
|
| |
Some users may want to switch buttons on their input devices, turns out
libinput already supports it. Let's add a support for it in our config.
Signed-off-by: Michał Winiarski <knr@hardline.pl>
|
| |
|
|
|
|
|
|
| |
Add swayc_change_layout function, which changes either layout or
workspace_layout, depending on the container type. Workspace being
always L_HORIZ makes this much more i3-compatible.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This adds HiDPI support to swaybar, swaybg, and swaylock.
|
| |
|
|\ |
|
| | |
|
|/ |
|
|
|
|
|
| |
Merge the main rendering paths of all containers to make focus setting a bit
simpler and easier to follow.
|
|
|
|
|
| |
The value of `locked_view_focus` is always false. Remove dead code associated
with this variable to simplify things.
|
|
|
|
|
|
| |
Replace `update_view_border()` with `update_container_border()`. The latter
should handle both the case where the container is a view or if the container
has children.
|
|
|
|
|
|
|
|
|
| |
The previous implementation of focus handling assumed that only views can be
focused. Containers can also be focused with a command like `focus parent` or
`focus child`.
Change `set_focused_container()` to handle the case of the given container
being a container with children and update borders accordingly.
|
| |
|
|
|
|
|
|
|
|
|
| |
When titlebar is hidden, top border of the topmost view inside
tabbed/stacked container will not be drawn. This is changed in layout.c
On the other hand, top border should be drawn sometimes, for example
when titlebar is hidden on a view that is not the topmost inside
tabbed/stacked container. This is changed in border.c
|
| |
|
| |
|
|
|
|
|
| |
The `focus child` command focuses the child container within the selected
container.
|