Take into account the window’s base_{width,height} when resizing (Thanks Mirko)

This commit is contained in:
Michael Stapelberg
2009-12-12 22:27:57 +01:00
parent 8d8804221b
commit f87b98e0a7
3 changed files with 56 additions and 6 deletions

View File

@ -112,6 +112,20 @@ void client_map(xcb_connection_t *conn, Client *client);
*/
void client_mark(xcb_connection_t *conn, Client *client, const char *mark);
/**
* Returns the minimum height of a specific window. The height is calculated
* by using 2 pixels (for the client window itself), possibly padding this to
* comply with the clients base_height and then adding the decoration height.
*
*/
uint32_t client_min_height(Client *client);
/**
* See client_min_height.
*
*/
uint32_t client_min_width(Client *client);
/**
* Pretty-prints the clients information into the logfile.
*