Frantisek Fladung
c04819e8c0
Implement hide_edge_borders smart (like in i3 4.13)
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
Mikkel Oscar Lyderik
b53b15b477
Fix uninitialized variable
9 years ago
Mikkel Oscar Lyderik
ddd5b69b99
border: clear buffer on fullscreen views
...
This patch makes sure to clear the border buffer of fullscreen view so
the border doesn't get drawn behind a fullscreen view, which would be
visible if the view was transparent.
9 years ago
Mikkel Oscar Lyderik
05b4965a99
Remove commented code
9 years ago
Mikkel Oscar Lyderik
5886ee156e
Use correct geometry for nested containers
9 years ago
Mikkel Oscar Lyderik
5492277f0c
Disable inner gaps when in tabbed/stacked mode
9 years ago
Mikkel Oscar Lyderik
3e1f78ab26
Add support for nested tabbed/stacked containers
9 years ago
Mikkel Oscar Lyderik
969f76a1a4
Make floating border fixes work with tabbed/stacked code
9 years ago
Mikkel Oscar Lyderik
a0cebb7c5a
Improve move command with tabbed/stacked layout
9 years ago
Mikkel Oscar Lyderik
d26658fb35
Correctly determine default layout
9 years ago
Mikkel Oscar Lyderik
8d700fe008
Fix problems with floating windows
...
Makes any tabbed/stacked layout a container to separate from floating
windows which may be attached to a workspace.
9 years ago
Mikkel Oscar Lyderik
ec7ff769c7
Tabbed and stacked layout
9 years ago
Mikkel Oscar Lyderik
60731ffba1
Remove clang warnings (-Wsign-compare)
9 years ago
crondog
b02be709cd
Fix window borders
...
This fixes floating borders when moving outside of the output. Not sure what
happens with dual screen as I only have 1 monitor
9 years ago
Eric Engestrom
3e8081514d
Fix spelling mistakes
9 years ago
Mikkel Oscar Lyderik
66e8b4d5de
Correctly reset border geometry
9 years ago