Rendering fixes for stacking mode

This commit is contained in:
Michael Stapelberg
2010-11-13 22:39:59 +01:00
parent e6d1f181fd
commit 7c6f2dbfc6
5 changed files with 121 additions and 20 deletions

View File

@ -135,7 +135,7 @@ int con_orientation(Con *con);
*/
Con *con_next_focused(Con *con);
/*
/**
* Returns a "relative" Rect which contains the amount of pixels that need to
* be added to the original Rect to get the final position (obviously the
* amount of pixels for normal, 1pixel and borderless are different).
@ -143,4 +143,14 @@ Con *con_next_focused(Con *con);
*/
Rect con_border_style_rect(Con *con);
/**
* Use this function to get a containers border style. This is important
* because when inside a stack, the border style is always BS_NORMAL.
* For tabbed mode, the same applies, with one exception: when the container is
* borderless and the only element in the tabbed container, the border is not
* rendered.
*
*/
int con_border_style(Con *con);
#endif