center new windows under the cursor. The "cascade" policy will try to
place new windows at the center of the active output, but possibly
shifts its position to bottom-right not to cover existing windows.
- Default is "center".
+ Default is "cascade".
*<placement><cascadeOffset><x>*++
*<placement><cascadeOffset><y>*
</core>
<placement>
- <policy>center</policy>
+ <policy>cascade</policy>
<!--
When <placement><policy> is "cascade", the offset for cascading new
windows can be overwritten like this:
} else if (!strcasecmp(nodename, "reuseOutputMode.core")) {
set_bool(content, &rc.reuse_output_mode);
} else if (!strcmp(nodename, "policy.placement")) {
- rc.placement_policy = view_placement_parse(content);
- if (rc.placement_policy == LAB_PLACE_INVALID) {
- rc.placement_policy = LAB_PLACE_CENTER;
+ enum view_placement_policy policy = view_placement_parse(content);
+ if (policy != LAB_PLACE_INVALID) {
+ rc.placement_policy = policy;
}
} else if (!strcasecmp(nodename, "xwaylandPersistence.core")) {
set_bool(content, &rc.xwayland_persistence);
}
has_run = true;
- rc.placement_policy = LAB_PLACE_CENTER;
+ rc.placement_policy = LAB_PLACE_CASCADE;
rc.placement_cascade_offset_x = 0;
rc.placement_cascade_offset_y = 0;