aboutsummaryrefslogtreecommitdiff
path: root/sway/layout.c
AgeCommit message (Collapse)Author
2015-11-24layout: get_swayc_in_direction_under: Handle floating views.S. Christoffer Eliesen
2015-11-24layout: swap_container: Handle floating views.S. Christoffer Eliesen
2015-11-24layout: replace_child: Handle floating views.S. Christoffer Eliesen
2015-11-24layout: add_sibling: Handle floating views properly.S. Christoffer Eliesen
This should fix #241.
2015-11-16output: Support multiple adjacent outputs.S. Christoffer Eliesen
When querying for an adjacent output we now need an absolute position in order to know which adjacent output that matches. (The position is either the current mouse position or the center of the currently focused container, depending on context.) If two outputs have one edge each that at least partially align with each other they now count as adjacent. Seamless mouse is affected by this and now properly moves and positions itself between outputs with "uneven" placement (as long as they have at least some part of the edge adjacent to each other). When focusing or moving a container in a specified direction the center of the current focused container decides where to look for an adjacent output. So if e.g. an output has two adjacent outputs to the right and a "focus right" command is issued then it's the placement of the currently focused container that decides which output actually gets focused. Also, if an output has at least one output adjacent in some direction but the entire edge is not covered (ie. it has "holes" with no outputs), then the algorithm will choose the output that is closest to the currently focused container (this does not apply to seamless mouse, the pointer will just stop at the edge in that case).
2015-11-12Fix gaps for views being incorrectDrew DeVault
2015-11-04Learn "gaps edge_gaps <on|off|toggle>".S. Christoffer Eliesen
When yes, the old behaviour of adding half the inner gap around each view is used. When no, don't add any gap when an edge of the view aligns with the workspace. The result is inner gap only between views, not against the workspace edge. The algorithm is not perfect because it means the extra space is distributed amongst edge-aligned views only, but it's simple, looks good and it works.
2015-11-03commands: Learn 'move workspace to output <direction|name>'.S. Christoffer Eliesen
2015-10-29layout: get_swayc_in_direction: Properly find adjacent outputs.S. Christoffer Eliesen
2015-10-28layout: Don't reset container size if it's a floating window.S. Christoffer Eliesen
2015-10-25log: Add swayc_log, use at a few key places.S. Christoffer Eliesen
swayc_log works just like sway_log, but appends type and name from given container to the log output.
2015-09-22Merge branch 'master' of https://github.com/taiyu-len/swaytaiyu
merge
2015-09-22#184taiyu
2015-09-18container_move checktaiyu
2015-09-07prevent views from disappearingtaiyu
2015-09-04default gap valuetaiyu
2015-08-29#151 fixtaiyu
2015-08-29Fixed move scratchpad and added in scratchpad showLuminarys
2015-08-28Added in scratchpad addingLuminarys
2015-08-28move v3taiyu
2015-08-28styletaiyu
2015-08-28layout fix for a certain casetaiyu
2015-08-28dont move floating contaienrstaiyu
2015-08-28move function redonetaiyu
2015-08-27update visibility + container info functionstaiyu
2015-08-26slight fixtaiyu
2015-08-26fixed move_container bug, log prints before abortingtaiyu
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-25added "move container to workspace"minus
makes the previous commit actually testable
2015-08-24add limit to swayc_in_directiontaiyu
2015-08-23mergetaiyu
2015-08-22fixed container resize odditytaiyu
2015-08-22floating/tiling move + floating resize cleaned and fixedtaiyu
2015-08-22Fix minor bug with output positioningDrew DeVault
2015-08-22Implement output positioningDrew DeVault
:tada:
2015-08-22Set x/y positions for output containersDrew DeVault
2015-08-21Refactored resizing functions into resize.cLuminarys
2015-08-21swayc_is_fullscreentaiyu
2015-08-21bugfixes, renamestaiyu
2015-08-21fixed #108 signed/unsigned comparisonminus
2015-08-21Merge pull request #105 from Half-Shot/masterDrew DeVault
Basic 'move' functionality.
2015-08-21Merge pull request #101 from Luminarys/masterDrew DeVault
Added in basic resizing command.
2015-08-21Added in bspwm like mouse resizingLuminarys
2015-08-20Rewrite of resize command to make it more saneLuminarys
2015-08-20Fixed style errorsHalf-Shot
2015-08-20Few stray bitsHalf-Shot
2015-08-20Merge branch 'master' of https://github.com/SirCmpwn/swayHalf-Shot
2015-08-20Basic left right move command implemented.Half-Shot