wil
52f3a8df51
fixed up space-after-cast style issues
8 years ago
wil
063c79874a
Indent cleanups
8 years ago
wil
d822150d83
[fix] Keep Clang happy
8 years ago
wil
f24ebd75fa
Added mouse resize for auto layouts
8 years ago
wil
1f47c58d63
simplification of apply_auto_layout
...
Achieved by introducing auto_group_bounds function that produces
the start/end indexes of a group inside an auto layot container.
8 years ago
wil
f7269684d0
[fix] scale check to prevent un-necessary layouts was in the wrong place.
8 years ago
wil
d99efb5f6f
[fix] corner cases win nb_children < nb_master|nb_col
8 years ago
wil
bd415029ba
Moved auto_* layout functions from resize.c to layout.c
8 years ago
wil
704b2db050
Merge branch 'master' of https://github.com/willakat/sway
8 years ago
wil
97f70987d7
[fix] cleanups suggested by Sway community
8 years ago
wil
a62048f15d
changed "layout promote" command to "move first"
...
This is more consistent with other Sway semantics.
8 years ago
Drew DeVault
c01b898398
Fix inline is_auto_layout
8 years ago
wil
2b0e3c212a
[fix] move next/prev behavior for vert/horiz layout
8 years ago
wil
0ff9fe9a7a
introduce next/prev as a direction for focus/move commands.
8 years ago
wil
ed71e67d7e
[fix] handle cases where nb_master > children->length in auto layout
8 years ago
wil
97f7d47413
Added Awesome/Monad type "auto" layouts
8 years ago
D.B
4762bcb3b9
wrap some views under workspaces
...
If workspace layout is set to tabbed or stacked, its C_VIEW children
should get wrapped in a container. Alongside that, move_container was
modified to retain previous functionality.
8 years ago
D.B
6fb4b6737a
add workspace_layout to container
...
Add swayc_change_layout function, which changes either layout or
workspace_layout, depending on the container type.
8 years ago
Drew DeVault
4cba91803e
Revert "Fixes dealing with workspace_layout and related bugs [rfc]"
8 years ago
D.B
166c2a3687
generalize wrapping views under workspaces
8 years ago
D.B
571321a1d8
add workspace_layout, ensure ws is always L_HORIZ
...
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.
8 years ago
Nicolas Cornu
382d47e238
Fix creating of sibling floating/children
...
If we want to add a sibling of different type than current
container it failed. Because we add it to the wrong list
8 years ago
D.B
379b1a0378
add focus changing between floating containers
...
It will also wrap if needed.
8 years ago
D.B
d3f5ac8cbb
add force_focus_wrapping option
8 years ago
D.B
7f558ce894
wrap container in direction (if possible)
...
Introduces container wrapping - if there is no other viable move, the
selection wraps on the first container where such action is possible.
8 years ago
Zandr Martin
7d947fdb95
add unique IDs to containers
8 years ago
Zandr Martin
e18b7cdfa9
add global `current_focus` pointer
8 years ago
Mikkel Oscar Lyderik
84d504ebdf
Make it possible to move views between outputs
...
This patch makes it possible to move views between outputs using the
`move left|right|up|down` commands.
It behaves similar to i3 with one important difference. The focus will
always follow the view being moved, unlike i3 where the focus doesn't
always follow the view to a new output (I assume that's a bug in i3).
8 years ago
Lukas Lihotzki
6addaca9fa
Correct `hide_edge_borders` command
...
`vertical` and `horizontal` should be swapped.
If border_left and border_right were set to 0, the vertical borders
instead of the horizontal borders would be hidden.
i3 handles this command equally.
8 years ago
Drew DeVault
416417a54c
Reorganize includes
8 years ago
D.B
41b5c6d1a9
Sort workspaces when moving workspace to output
...
This should fix #839
9 years ago
Tony Crisci
b39249508f
Refactor functions to update container borders
...
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.
9 years ago
D.B
c33e0ee629
revert border hiding to more recent version
9 years ago
D.B
8d0048c8d5
properly hide top border inside tabbed/stacked
...
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
9 years ago
Drew DeVault
11e7ca044c
Update hidpi support to latest wlc API
9 years ago
Drew DeVault
6ea02f3064
Initial pass on HiDPI support
9 years ago
Drew DeVault
d07eaed79f
Merge pull request #793 from thejan2009/workspace_layout_first_window_fix
...
bugfix: invisible windows on empty workspace with tabbed/stacked layout
9 years ago
D.B
a46cf77549
bugfix: windows on empty workspaces with layout tabbed/stacked would spawn with 0x0 geometry
9 years ago
Tony Crisci
88b7cbe314
Implement `focus child` command
...
The `focus child` command focuses the child container within the selected
container.
9 years ago
D.B
f16cb1464f
properly hide bottom and right borders
9 years ago
Zandr Martin
3137615838
fix regression in hide_edge_borders
9 years ago
D.B
03b0180c30
rename ws to workspace for clarity
9 years ago
D.B
b893f07ce1
calculate borders for hiding from workspace geometry
9 years ago
Mykyta Holubakha
a2bc6f3bfd
Arrange backgrounds only when required
9 years ago
Mykyta Holubakha
976e48d79f
Initial work on window events
9 years ago
Drew DeVault
5a1d95ac2a
Move backgrounds to back after arrange_windows
...
Fixes #769
9 years ago
D.B
ad7605675e
refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed
9 years ago
Zandr Martin
15a324b0d3
implement `get_tree` command
9 years ago
Zandr Martin
3fac9705b0
redo smart_gaps/hide_edge_borders fix
9 years ago
Jasen Borisov
870a7aaad9
Fix issue #661 .
...
Borders are now drawn correctly (same behavior as i3) for tabbed and
stacked containers, when the children have 'border none' set.
9 years ago