mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
feat: automatic window placement
With automatic placement, new top-level windows will be placed to minimize overlap with other windows already on screen.
This commit is contained in:
parent
ef62d47ad1
commit
52aafcc054
7 changed files with 548 additions and 5 deletions
|
|
@ -704,7 +704,9 @@ entry(xmlNode *node, char *nodename, char *content)
|
|||
} else if (!strcasecmp(nodename, "reuseOutputMode.core")) {
|
||||
set_bool(content, &rc.reuse_output_mode);
|
||||
} else if (!strcmp(nodename, "policy.placement")) {
|
||||
if (!strcmp(content, "cursor")) {
|
||||
if (!strcmp(content, "automatic")) {
|
||||
rc.placement_policy = LAB_PLACE_AUTOMATIC;
|
||||
} else if (!strcmp(content, "cursor")) {
|
||||
rc.placement_policy = LAB_PLACE_CURSOR;
|
||||
} else {
|
||||
rc.placement_policy = LAB_PLACE_CENTER;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue