aboutsummaryrefslogtreecommitdiff
path: root/sway/container.c
AgeCommit message (Collapse)Author
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
2015-12-13Make destroy_workspace behave as expectedKevin Hamacher
2015-12-02Fix using last output config if none matchedChristoph Gysin
2015-11-28Allow output config for output named *Drew DeVault
Which will match any output.
2015-11-27workspace: Learn sticky.S. Christoffer Eliesen
A floating window that's sticky will move to the new active workspace whenever the workspace on the same output changes.
2015-11-24container: Store app_id attribute for views.S. Christoffer Eliesen
2015-11-24container: Store class attribute for views.S. Christoffer Eliesen
2015-11-14We wlc_point nowDrew DeVault
cc @Cloudef
2015-10-29input_state: Remove mouse_origin (x&y). Query wlc instead.S. Christoffer Eliesen
2015-10-29container: Move container_under_pointer here from handlers.S. Christoffer Eliesen
2015-10-21config: Apply output config also during config reload.S. Christoffer Eliesen
2015-10-21commands,container: Tweak debug output to better reflect reality.S. Christoffer Eliesen
2015-09-18merge + no c_extensionstaiyu
2015-09-18minor fixtaiyu
2015-09-18Fix warnings introduced by prior commitDrew DeVault
2015-09-13Revert "new_workspace null behavior + testmap functions + regex"Drew DeVault
This reverts commit e1d18e42a8f3a597b9bf5f1bb2ab6c346e4e7983. Fixes #180 cc @taiyu-len
2015-09-12new_workspace null behavior + testmap functions + regextaiyu
2015-09-05gap resizetaiyu
2015-09-04default gap valuetaiyu
2015-08-31properly remove children in loopstaiyu
2015-08-27forgot visibility of floating containerstaiyu
2015-08-27update visibility + container info functionstaiyu
2015-08-27proper visibility updatetaiyu
2015-08-27use previous outputstaiyu
2015-08-27Added in default_orientation handlingLuminarys
2015-08-27update visibility for moved workspacestaiyu
2015-08-26move workspace from dead output to other outputtaiyu
2015-08-26slight fixtaiyu
2015-08-27fixed container_mapminus
applies to the passed in container now as well. fixes workspaces staying always marked visible. also set workspaces to not visible by default; happens when you move a container to a new workspace that thus is not visible
2015-08-26some function documentation, fixed gaps on config reloadtaiyu
2015-08-26move_container_to fixuptaiyu
2015-08-25fixed segfault on exit + a little fixup of that floatfocus prtaiyu
2015-08-25fixed moving to other output and visibilityminus
2015-08-25changed view visibility to be boolminus
view_visibility enum remains with one constant that is the mask to wlc's view masking
2015-08-25refactored view visibilityminus
- replace visibilty mask integers with an enum - set output's visibilty mask on creation - added update_visibility to manually update a containers visibility (e.g. when it moved to an invisible workspace)
2015-08-24add limit to swayc_in_directiontaiyu