mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
feat: under-cursor window placement
With under-cursor placement, new top-level windows will be centered under the cursor rather than centered on the active view.
This commit is contained in:
parent
ce3c5ab958
commit
ef62d47ad1
8 changed files with 51 additions and 8 deletions
|
|
@ -703,6 +703,12 @@ entry(xmlNode *node, char *nodename, char *content)
|
|||
set_bool(content, &rc.adaptive_sync);
|
||||
} else if (!strcasecmp(nodename, "reuseOutputMode.core")) {
|
||||
set_bool(content, &rc.reuse_output_mode);
|
||||
} else if (!strcmp(nodename, "policy.placement")) {
|
||||
if (!strcmp(content, "cursor")) {
|
||||
rc.placement_policy = LAB_PLACE_CURSOR;
|
||||
} else {
|
||||
rc.placement_policy = LAB_PLACE_CENTER;
|
||||
}
|
||||
} else if (!strcmp(nodename, "name.theme")) {
|
||||
rc.theme_name = xstrdup(content);
|
||||
} else if (!strcmp(nodename, "cornerradius.theme")) {
|
||||
|
|
@ -949,6 +955,8 @@ rcxml_init(void)
|
|||
}
|
||||
has_run = true;
|
||||
|
||||
rc.placement_policy = LAB_PLACE_CENTER;
|
||||
|
||||
rc.xdg_shell_server_side_deco = true;
|
||||
rc.ssd_keep_border = true;
|
||||
rc.corner_radius = 8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue