aboutsummaryrefslogtreecommitdiff
path: root/sway/border.c
AgeCommit message (Collapse)Author
2016-08-03Simplify focus settingTony Crisci
Merge the main rendering paths of all containers to make focus setting a bit simpler and easier to follow.
2016-08-02Fix segfault in border.cDrew DeVault
2016-07-31Refactor functions to update container bordersTony Crisci
Replace `update_view_border()` with `update_container_border()`. The latter should handle both the case where the container is a view or if the container has children.
2016-07-31Implement focus handling for containersTony Crisci
The previous implementation of focus handling assumed that only views can be focused. Containers can also be focused with a command like `focus parent` or `focus child`. Change `set_focused_container()` to handle the case of the given container being a container with children and update borders accordingly.
2016-07-30properly hide top border inside tabbed/stackedD.B
When titlebar is hidden, top border of the topmost view inside tabbed/stacked container will not be drawn. This is changed in layout.c On the other hand, top border should be drawn sometimes, for example when titlebar is hidden on a view that is not the topmost inside tabbed/stacked container. This is changed in border.c
2016-07-27Render focused stack/tab children focusedTony Crisci
Whenever a stacked or tabbed container has focused, paint the titlebars of all its child windows to be focused as well to indicate the parent stack/tab container has the focus.
2016-07-18Construct titles of nested tabbed/stacked containers from app_id instead of ↵D.B
title
2016-07-16refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use ↵D.B
where needed
2016-05-18Fix issue #661.Jasen Borisov
Borders are now drawn correctly (same behavior as i3) for tabbed and stacked containers, when the children have 'border none' set.
2016-05-01Update view title of tabbed/stacked windowsMikkel Oscar Lyderik
Requires Cloudef/wlc@80bf003 Fix #623
2016-04-27border: clear buffer on fullscreen viewsMikkel Oscar Lyderik
This patch makes sure to clear the border buffer of fullscreen view so the border doesn't get drawn behind a fullscreen view, which would be visible if the view was transparent.
2016-04-27Only check tabbed_stacked_parent for focused windowsMikkel Oscar Lyderik
2016-04-25Add title to nested tabbed/stacked containersMikkel Oscar Lyderik
2016-04-25Add support for nested tabbed/stacked containersMikkel Oscar Lyderik
2016-04-25Use tabs for indentationMikkel Oscar Lyderik
2016-04-25Make floating border fixes work with tabbed/stacked codeMikkel 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-24Passing missing argument to get_text_sizeMykyta Holubakha
2016-04-17Flesh out pango markup implementationDrew DeVault
2016-04-12Plug two memory leaksChang Liu
Plug two memory leaks introduced in the border drawing code.
2016-04-03Use border background color as border backgroundKevin Hamacher
2016-04-03Fix window borderscrondog
This fixes floating borders when moving outside of the output. Not sure what happens with dual screen as I only have 1 monitor
2016-04-02improve endianess handelingKevin Hamacher
2016-03-30Fix crashes with bordersDrew DeVault
2016-03-30Update window title when it changesMikkel Oscar Lyderik
2016-03-30Mark focused view focus_inactive on unfocused outputMikkel Oscar Lyderik
2016-03-30Comment endiannessMikkel Oscar Lyderik
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).