mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
interactive: allow snapping to corner edges
In addition to <snapping><range>, <snapping><cornerRange> configures the distance from the screen corner to trigger quater window snapping. Also, new values "up-left", "up-right", "down-left" and "down-right" are allowed for <action name="(Toggle)SnapToEdge" direction="[value]"> and <query tiled="[value]">.
This commit is contained in:
parent
b0ff2911b6
commit
2f183cdcb6
14 changed files with 147 additions and 89 deletions
|
|
@ -1175,6 +1175,8 @@ entry(xmlNode *node, char *nodename, char *content)
|
|||
rc.unmaximize_threshold = atoi(content);
|
||||
} else if (!strcasecmp(nodename, "range.snapping")) {
|
||||
rc.snap_edge_range = atoi(content);
|
||||
} else if (!strcasecmp(nodename, "cornerRange.snapping")) {
|
||||
rc.snap_edge_corner_range = atoi(content);
|
||||
} else if (!strcasecmp(nodename, "enabled.overlay.snapping")) {
|
||||
set_bool(content, &rc.snap_overlay_enabled);
|
||||
} else if (!strcasecmp(nodename, "inner.delay.overlay.snapping")) {
|
||||
|
|
@ -1411,6 +1413,7 @@ rcxml_init(void)
|
|||
rc.unmaximize_threshold = 150;
|
||||
|
||||
rc.snap_edge_range = 10;
|
||||
rc.snap_edge_corner_range = 50;
|
||||
rc.snap_overlay_enabled = true;
|
||||
rc.snap_overlay_delay_inner = 500;
|
||||
rc.snap_overlay_delay_outer = 500;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue