aboutsummaryrefslogtreecommitdiff
path: root/sway/container.c
AgeCommit message (Collapse)Author
2017-08-06Prevent race condition in the kill commandCalvin Lee
When killing views with `close_views` a use-after-free can sometimes occur because parent views are killed before their children. This commit makes `container_map` run functions on child containers before their parent, fixing the race. Fixes #1302
2017-07-12Use WLC v2 pointer interfaceScott Anderson
2017-06-14Force focus on unmanaged views during pointer testDrew DeVault
2017-04-03Impliment i3-style marksCalvin Lee
This commit adds three commands to sway: `show_marks`, `mark` and `unmark`. Marks are displayed right-aligned in the window border as i3 does. Marks may be found using criteria. Fixes #1007
2017-03-19The default layout of a workspace should follow the outputJarkko Oranen
Hardcoding it to L_HORIZ does not make sense to me, as you get the unexpected behaviour that windows will be arranged horizontally until you switch the layout.
2017-03-10UnGNUify the codebaseDrew DeVault
2017-03-10Further indentation correctionsDrew DeVault
2017-02-14use absolute view geometry to calculate positionZandr Martin
2017-01-19Add window instance supportMykyta Holubakha
2017-01-08Indent cleanupswil
2016-12-29cleanup in auto layoutswil
- 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.
2016-12-29Added Awesome/Monad type "auto" layoutswil
2016-12-18Put floating views in center, fallback on top leftNicolas Cornu
Sometimes views are created before we got its size
2016-12-15Handle calloc failuresDrew DeVault
2016-12-15Add remaining sway allocation failure handlingDrew DeVault
2016-12-04fix layout switching (was broken because of workspace_layout)D.B
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.
2016-12-04add workspace_layout to containerD.B
Add swayc_change_layout function, which changes either layout or workspace_layout, depending on the container type.
2016-10-12Revert "Merge pull request #952 from ↵Drew DeVault
SirCmpwn/revert-948-floating-titlebar-click" This reverts commit 857eea8b6355deff7a12edd8b733f8057210142a, reversing changes made to ce713efcd23b82a7d85c1976ddfbd46f08133ff6.
2016-10-12Revert "Fixes dealing with workspace_layout and related bugs [rfc]"Drew DeVault
2016-10-12Revert "also check floating cons in container_find"Drew DeVault
2016-10-11Merge pull request #945 from thejan2009/workspace_layoutDrew DeVault
Fixes dealing with workspace_layout and related bugs [rfc]
2016-10-11add workspace_layout, ensure ws is always L_HORIZD.B
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.
2016-10-11also check floating cons in container_findD.B
2016-10-06add click on title_bar to focus a containerNicolas Cornu
2016-09-21add unique IDs to containersZandr Martin
2016-09-17Fix swaybar when running on named outputs.Ryan Dwyer
When using a bar on a named output, load_swaybars() requires the output to be active (ie. in the root container), but this is not the case if the bar is added to the last output. To fix this, load_swaybars() is now called after the output has been added to the root container. After fixing that, swaybar would segfault due to using the wrong index variable when loading outputs and config.
2016-09-01Reorganize includesDrew DeVault
2016-07-28Update hidpi support to latest wlc APIDrew DeVault
2016-07-28Initial pass on HiDPI supportDrew DeVault
2016-07-21outer gap 0 with smart_gaps onD.B
2016-07-16refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use ↵D.B
where needed
2016-07-07Fix tabbed/stacked corner case #742D.B
Tabbed/stacked containers are now created only if a view is present on the workspace. If a view is created on previously empty tabbed/stacked workspace, it gets wrapped in a container.
2016-07-04implement `get_tree` commandZandr Martin
2016-06-18Added a null check in tabbed_stacked_parentHummer12007
This fixes a segfault, when trying to get parent of the workspace/root container/(?), as it is not assuered that the view's parent node is not null in the loop
2016-06-02Initial implementation for floating_maximum_sizeDenis Doria
2016-05-31Initial work for floating view with sane valuesDenis Doria
2016-05-28enforce workspace output assignentsZandr Martin
when creating a new output, move to that output all extant workspaces that are assigned to that output. (unrelated) remove comment that was no longer applicable, fix spacing in an assignment
2016-05-27Implement sort_workspaces() function for outputs.Zandr Martin
This seems to have resolved issue #669 for me.
2016-05-14Revert "sway/container.c: fix segfault where view is assigned prematurely"Drew DeVault
2016-05-09sway/container.c: fix segfault where view is assigned prematurelyDaniel Lockyer
2016-04-25Remove unused functionMikkel Oscar Lyderik
2016-04-25Don't send invisble view to backMikkel Oscar Lyderik
2016-04-25Disable inner gaps when in tabbed/stacked modeMikkel Oscar Lyderik
2016-04-25Add support for nested tabbed/stacked containersMikkel Oscar Lyderik
2016-04-25Reapply prev layout when exiting tabbed/stackedMikkel Oscar Lyderik
2016-04-25Correctly determine default layoutMikkel Oscar Lyderik
2016-04-25Fix problems with floating windowsMikkel Oscar Lyderik
Makes any tabbed/stacked layout a container to separate from floating windows which may be attached to a workspace.
2016-04-25Tabbed and stacked layoutMikkel Oscar Lyderik
2016-04-17Use correct format string for x86_64 and i686Mikkel Oscar Lyderik
Fix #587
2016-04-12Plug two memory leaksChang Liu
Plug two memory leaks introduced in the border drawing code.