summaryrefslogtreecommitdiff
path: root/sway/tree/container.c
AgeCommit message (Collapse)Author
2018-05-17Fix many border opacity issuesRyan Dwyer
2018-05-17Set textures to null when destroyingRyan Dwyer
2018-05-14Kill wl_shellemersion
2018-05-13Add xdg-shell stable supportemersion
2018-05-12Fix recursion when counting descendants of a typeBrian Ashworth
2018-05-12Count descendant views for hide_edge_borders smartBrian Ashworth
2018-05-10Damage container when updating titleemersion
2018-05-10Damage borders when damaging viewemersion
2018-05-06Implement pango supportRyan Dwyer
Implements support for the pango: prefix in the font command. Closes #1903.
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-05Use scissor to render title textureRyan Dwyer
This allows the title's texture to always be the full width of the text, and clipped at render time according to the desired width (eg. tabs...). As an added bonus, the texture no longer needs to be updated when containers are arranged.
2018-05-04Check for NULL in container_update_titleAlex Xu (Hello71)
Fixes crash when opening Firefox developer tools.
2018-05-03Fix title texture widthRyan Dwyer
Use max of the container width or text width.
2018-05-03Convert border_colors.text to float[4]Drew DeVault
2018-05-03Fix anti-aliasingDrew DeVault
2018-05-03Fix potential segfault when setting container titleRyan Dwyer
2018-05-03Calculate config->font_height based on existing container titlesRyan Dwyer
2018-05-03Render titlesRyan Dwyer
2018-05-01Fix layer surface crash on output destroydb
Before freeing sway_output, NULL the wlr_output reference to it. Check for that NULL in layer_shell handle_destroy. Don't damage null container in unmap. Additionaly, terminate swaybg if its output is being disabled.
2018-05-01Allow clicking view decorations to focus viewRyan Dwyer
2018-05-01Fix surface offset when using bordersRyan Dwyer
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-24Fix crash in container_descendants()Ryan Dwyer
If root is a C_VIEW, the children property is a null pointer.
2018-04-17Create sway_workspace struct.Ryan Dwyer
2018-04-13container_destroy: fix segfaultDominique Martinet
cont->children doesn't have to be NULL when there is no children
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-06Fix deletion of still-visible workspaces on unfocusDrew DeVault
2018-04-05Merge pull request #1743 from emersion/subsurface-damage-trackingDrew DeVault
Damage tracking for view children
2018-04-05Fix desktop_damage_whole_surfaceemersion
2018-04-05Add container_damage_wholeemersion
2018-04-05Handle output removal on swaybarDrew DeVault
2018-04-04Merge branch 'wlroots' into fix-focus-inactiveTony Crisci
2018-04-04Use new wlr_*_surface_at functionsemersion
2018-04-04Remove unused SWAY_VIEW_TYPESemersion
2018-04-04Implement opacity commandTony Crisci
2018-04-04fix sending window new eventTony Crisci
2018-04-04try to fix focus-inactiveTony Crisci
2018-04-04send window close eventTony Crisci
2018-04-04fix double freeTony Crisci
2018-04-03simplify container closeTony Crisci
2018-04-03move output create to its own fileTony Crisci
2018-04-03move workspace create to workspace.cTony Crisci
2018-04-03move output damage to workspace destructorTony Crisci
2018-04-03rename container_finish to _container_destroyTony Crisci
2018-04-03address feedbackTony Crisci
2018-04-03rename workspace_get_initial_outputTony Crisci
2018-04-03clean up container_get_default_layoutTony Crisci
2018-04-03move container_set_layout to layout.hTony Crisci
2018-04-03make container_finish privateTony Crisci