Handle floating centering in one function and test for consistency

This commit is contained in:
Deiz
2015-03-30 03:10:40 -04:00
parent 2759a308a2
commit c6581a5fd6
5 changed files with 128 additions and 20 deletions

View File

@ -64,6 +64,12 @@ void floating_raise_con(Con *con);
*/
bool floating_maybe_reassign_ws(Con *con);
/**
* Centers a floating con above the specified rect.
*
*/
void floating_center(Con *con, Rect rect);
#if 0
/**
* Removes the floating client from its workspace and attaches it to the new