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:
committed by
Michael Stapelberg
parent
cd5ebc2dca
commit
42db9de7ec
@ -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 GIMP’s color picker window) get mapped
|
||||
* to (0, 0), so we push them to a reasonable position
|
||||
* (centered over their leader) */
|
||||
|
Reference in New Issue
Block a user