aboutsummaryrefslogtreecommitdiff
path: root/sway/container.c
AgeCommit message (Collapse)Author
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
2016-03-04Fix assigning workspaces to outputsMikkel Oscar Lyderik
It's possible to assign workspaces to certain outputs using the command: workspace <name> output <output> However, this did not work in some cases where the workspace was assigned before the given output was made available to sway. This patch fixes those cases.
2016-02-27Make sway spawn only one bar per bar configMikkel Oscar Lyderik
2016-02-25Send workspace ICP event on ws destroy/empty.Mikkel Oscar Lyderik
There is no 'destroy' change type in the i3 IPC so this uses `empty` to notify about empty workspaces (which will be destroyed from sway right after).
2016-02-12Prefer named output config over wildcard config.Mikkel Oscar Lyderik
This makes sure that a named output config is applied before the general wildcard config when a new output is created. This ensures that the config: output * ... output NAME ... behaves the same way as: output NAME ... output * ...
2016-01-21Fix rendering of view when moving to new workspaceMikkel Oscar Lyderik
This is a possible fix for #384. To be honest I don't fully understand why this bug is happening, but I have narrowed it down to the view stack in wlc and how sway orders views in very specific situations (those described in #384). Anyway this should fix the problem by eliminating the call to `wlc_view_bring_to_front` which isn't really needed anyway since sending all invisible views to the back is the same as bringing all visible views to the front (rotating the view stack).
2016-01-05Fix whitespace issues.Mikkel Oscar Lyderik
2015-12-29Handle SIGTERM sent to swayMikkel Oscar Lyderik
This makes sway handle and gracefully shut down everything when receiving a SIGTERM. Fix #416
2015-12-20container: Fix inner gaps against screen edge.S. Christoffer Eliesen
2015-12-18Terminate children when freeing output containerMikkel Oscar Lyderik
2015-12-18Reload swaybar/swaybg on config reload.Mikkel Oscar Lyderik
This works by tracking the pids of the child processes in the related output container and terminating the processes and spawning new ones on a config reload. Should solve: #347
2015-12-18sway: insert numbered workspaces in orderprogandy
fixes #308 Ordered by number ascending, with insert before same numbers. Workspaces without numbers are appended at the end of the list. Example order: 1 2:named 3:the_second 3:the_first 9 FIRST_NAME SECOND_NAME ...
2015-12-16Bring unmanaged windows to front on output arrangeDrew DeVault
Fixes #312