Add new_float config option.

This option sets the default border style for containers automatically put into floating mode.

Fixes #264
This commit is contained in:
Mateusz Poszwa
2011-08-08 21:51:21 +02:00
committed by Michael Stapelberg
parent cd5ebc2dca
commit 42db9de7ec
5 changed files with 20 additions and 0 deletions

View File

@ -129,6 +129,10 @@ void floating_enable(Con *con, bool automatic) {
con->percent = 1.0;
con->floating = FLOATING_USER_ON;
/* 4: set the border style as specified with new_float */
if (automatic)
con->border_style = config.default_floating_border;
/* Some clients (like GIMPs color picker window) get mapped
* to (0, 0), so we push them to a reasonable position
* (centered over their leader) */