aboutsummaryrefslogtreecommitdiff
path: root/sway/container.c
AgeCommit message (Collapse)Author
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.
2016-04-09Don't init desired width/height on new_viewMikkel Oscar Lyderik
When creating a new view, wlc usually returns an initial geometry with size 1x1. Setting those values as desired width/height causes a problem for some windows (QT5) because they don't request a new geometry for instance when made floating, so the floating window becomes 1x1. To fix this problem we can just omit setting the desired width/height on new_view and instead let the clients request a certain size if they feel like it. e.i. gnome-calculator. Fix #578
2016-04-02Fix spelling mistakesEric Engestrom
2016-03-31Fix pointer related crash when stacked/tabbedMikkel Oscar Lyderik
Fix #564
2016-03-31Add cmds new_window and new_floatMikkel Oscar Lyderik
Makes it possible to set default layout style for new windows and new floating windows. Close #556
2016-03-30Implement bordersMikkel Oscar Lyderik
The borders are implemented as a surface/buffer attached to each view which is sent to and rendered by wlc in the view_pre_render callback. All the drawing logic is handled in sway/border.c and all the logic for calculating the geometry of the border/view is handled in `update_geometry` in sway/layout.c (same place as gaps are calculated).
2016-03-30Implement some more on bordersDrew DeVault
Note that this segfaults ALL THE TIME in wlc code. Paging @Cloudef for help, I'm at a loss.
2016-03-20Implement 'smart_gaps' feature from i3-gapsMikkel Oscar Lyderik