mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
config: use automatic placement by default
This commit is contained in:
parent
4b6efb7307
commit
d7d8281ac0
3 changed files with 10 additions and 10 deletions
|
|
@ -196,12 +196,12 @@ this is for compatibility with Openbox.
|
||||||
|
|
||||||
## PLACEMENT
|
## PLACEMENT
|
||||||
|
|
||||||
*<placement><policy>* [center|automatic|cursor]
|
*<placement><policy>* [automatic|center|cursor]
|
||||||
Specify a placement policy for new windows. The "center" policy will
|
Specify a placement policy for new windows. The "automatic" policy will
|
||||||
always place windows at the center of the active output. The "automatic"
|
try to place new windows in such a way that they will have minimal
|
||||||
policy will try to place new windows in such a way that they will
|
overlap with existing windows. The "center" policy will always place
|
||||||
have minimal overlap with existing windows. The "cursor" policy will
|
windows at the center of the active output. The "cursor" policy will
|
||||||
center new windows under the cursor. Default is "center".
|
center new windows under the cursor. Default is "automatic".
|
||||||
|
|
||||||
## WINDOW SWITCHER
|
## WINDOW SWITCHER
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
</core>
|
</core>
|
||||||
|
|
||||||
<placement>
|
<placement>
|
||||||
<policy>center</policy>
|
<policy>automatic</policy>
|
||||||
</placement>
|
</placement>
|
||||||
|
|
||||||
<!-- <font><theme> can be defined without an attribute to set all places -->
|
<!-- <font><theme> can be defined without an attribute to set all places -->
|
||||||
|
|
|
||||||
|
|
@ -871,12 +871,12 @@ entry(xmlNode *node, char *nodename, char *content)
|
||||||
} else if (!strcasecmp(nodename, "reuseOutputMode.core")) {
|
} else if (!strcasecmp(nodename, "reuseOutputMode.core")) {
|
||||||
set_bool(content, &rc.reuse_output_mode);
|
set_bool(content, &rc.reuse_output_mode);
|
||||||
} else if (!strcmp(nodename, "policy.placement")) {
|
} else if (!strcmp(nodename, "policy.placement")) {
|
||||||
if (!strcmp(content, "automatic")) {
|
if (!strcmp(content, "center")) {
|
||||||
rc.placement_policy = LAB_PLACE_AUTOMATIC;
|
rc.placement_policy = LAB_PLACE_CENTER;
|
||||||
} else if (!strcmp(content, "cursor")) {
|
} else if (!strcmp(content, "cursor")) {
|
||||||
rc.placement_policy = LAB_PLACE_CURSOR;
|
rc.placement_policy = LAB_PLACE_CURSOR;
|
||||||
} else {
|
} else {
|
||||||
rc.placement_policy = LAB_PLACE_CENTER;
|
rc.placement_policy = LAB_PLACE_AUTOMATIC;
|
||||||
}
|
}
|
||||||
} else if (!strcmp(nodename, "name.theme")) {
|
} else if (!strcmp(nodename, "name.theme")) {
|
||||||
rc.theme_name = xstrdup(content);
|
rc.theme_name = xstrdup(content);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue