Obey WM_SIZE_HINTS's resize increments in floating

This commit is contained in:
oblique
2013-02-08 18:41:41 +02:00
committed by Michael Stapelberg
parent b0e2be9a6b
commit e92dd1acc6
3 changed files with 41 additions and 10 deletions

View File

@ -173,6 +173,7 @@ void scratchpad_show(Con *con) {
Con *output = con_get_output(con);
con->rect.width = output->rect.width * 0.5;
con->rect.height = output->rect.height * 0.75;
floating_check_size(con);
con->rect.x = output->rect.x +
((output->rect.width / 2.0) - (con->rect.width / 2.0));
con->rect.y = output->rect.y +