summaryrefslogtreecommitdiff
path: root/include/sway/tree/container.h
AgeCommit message (Collapse)Author
2018-05-22Use constants for titlebar dimensionsRyan Dwyer
2018-05-21Implement tabbed layoutRyan Dwyer
2018-05-19Rebuild textures if needed when moving a containerRyan Dwyer
When moving a container to an output which has a different scale than the previous, rebuild the title and marks textures at the new scale. Fixes #1999.
2018-05-12Count descendant views for hide_edge_borders smartBrian Ashworth
2018-05-05Implement title_formatRyan Dwyer
This implements the title_format command, with a new placeholder %shell which gets substituted with the view type (xwayland, xdg_shell_v6 or wl_shell). Example config: for_window [title=".*"] title_format %title (class=%class instance=%instance shell=%shell)
2018-05-03Calculate config->font_height based on existing container titlesRyan Dwyer
2018-05-03Render titlesRyan Dwyer
2018-04-30Implement bordersRyan Dwyer
Implements rendering of borders. Title text is still to do. Implements the following configuration directives: * client.focused * client.focused_inactive * client.unfocused * client.urgent * border * default_border
2018-04-28Refactor arrange_windows()Ryan Dwyer
Replaces arrange_windows() with arrange_root(), arrange_output(), arrange_workspace() and arrange_children_of(). Also makes fullscreen views save and restore their dimensions, which allows it to preserve any custom resize and is also a requirement for floating views once they are implemented.
2018-04-26Remove sway_container.workspace_layoutRyan Dwyer
Fixes #1716.
2018-04-17Create sway_workspace struct.Ryan Dwyer
2018-04-17Feedback for fullscreen.Ryan Dwyer
2018-04-16Implement fullscreen.Ryan Dwyer
2018-04-06Implement move [left|right|up|down]Drew DeVault
The exact semantics of this command are complicated. I'll describe each test scenario as s-expressions. Everything assumes L_HORIZ if not specified, but if you rotate everything 90 degrees the same test cases hold. ``` (container (view a) (view b focus) (view c)) -> move left (container (view b focus) (view a) (view c)) (container (view a) (view b focus) (view c)) -> move right (container (view a) (view c) (view b focus)) (container L_VERT (view a)) (container L_HORIZ (view b) (view c focus)) -> move up (container L_VERT (view a) (view c focus)) (container L_HORIZ (view b)) (workspace (view a) (view b focus) (view c)) -> move up (workspace [split direction flipped] (view b focus) (container (view a) (view c))) (workspace (view a) (view b focus) (view c)) -> move down (workspace [split direction flipped] (container (view a) (view c)) (view b focus))) Note: outputs use wlr_output_layout instead of assuming that i+/-1 is the next output in the move direction. (root (output X11-1 (workspace 1)) (output X11-2 (workspace 1 (view a focus) (view b))))) -> move left (root (output X11-1 (workspace 1 (view a focus))) (output X11-2 (workspace 1 (view b))))) (root (output X11-1 (workspace 1 (container (view a) (view b))) (output X11-2 (workspace 1 (view c focus))))) -> move left (root (output X11-1 (workspace 1 (container (view a) (view b)) (view c focus))) (output X11-2 (workspace 1))) ```
2018-04-05Remove L_TYPESemersion
2018-04-05Add container_damage_wholeemersion
2018-04-04Implement opacity commandTony Crisci
2018-04-03move workspace create to workspace.cTony Crisci
2018-04-03fix old todosTony Crisci
2018-04-03move container_set_layout to layout.hTony Crisci
2018-04-03make container_finish privateTony Crisci
2018-04-03unify container destroy functionsTony Crisci
2018-04-03move view and workspace destructors to container.cTony Crisci
2018-04-02change reap container approachTony Crisci
2018-04-02fix more close segfaultsTony Crisci
2018-04-02Merge branch 'wlroots' into split-containersTony Crisci
2018-04-02Merge branch 'wlroots' into view-redesignemersion
2018-04-02Xwayland unmanaged views aren't views anymoreemersion
2018-04-02Merge branch 'wlroots' into split-containersTony Crisci
2018-04-02Partially implement move commandDrew DeVault
Works: - move [container|window] to workspace <name> - Note, this should be able to move C_CONTAINER but this is untested - move [workspace] to output [left|right|up|down|<name>] Not implemented yet: - move [left|right|up|down] - move scratchpad - move position
2018-03-31add docstrings and todosTony Crisci
2018-03-31Introduce common functions to create, map, unmap, destroy viewsemersion
2018-03-31handle container destroy in the seatTony Crisci
2018-03-31basic split containersTony Crisci
2018-03-30Fix workspace deletion edge casesDrew DeVault
2018-03-30Destroy empty workspaces when moving awayDrew DeVault
2018-03-29Fix oversights from previous pull requestTony Crisci
2018-03-29Revert "Merge pull request #1653 from swaywm/revert-1647-refactor-tree"Tony Crisci
This reverts commit 472e81f35d689d67cda241acafda91c688d61046, reversing changes made to 6b7841b11ff4cd35f54d69dc92029855893e5ce0.
2018-03-29Revert "Refactor tree"Drew DeVault
2018-03-29rename container_for_each_descendentTony Crisci
2018-03-29address feedbackTony Crisci
2018-03-29fix container_get_in_direction nameTony Crisci
2018-03-29more renaming thingsTony Crisci
2018-03-29rename container functionsTony Crisci
2018-03-29remove swayc_t typedefTony Crisci
2018-03-29move tree includes to their own directoryTony Crisci