mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
Allow mouse movements to trigger SnapToEdge
This commit is contained in:
parent
4e3a03586a
commit
87f4a60e38
5 changed files with 53 additions and 2 deletions
|
|
@ -374,6 +374,10 @@ entry(xmlNode *node, char *nodename, char *content)
|
|||
rc.repeat_delay = atoi(content);
|
||||
} else if (!strcasecmp(nodename, "screenEdgeStrength.resistance")) {
|
||||
rc.screen_edge_strength = atoi(content);
|
||||
} else if (!strcasecmp(nodename, "range.snapping")) {
|
||||
rc.snap_edge_range = atoi(content);
|
||||
} else if (!strcasecmp(nodename, "topMaximize.snapping")) {
|
||||
rc.snap_top_maximize = get_bool(content);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -470,6 +474,8 @@ rcxml_init()
|
|||
rc.repeat_rate = 25;
|
||||
rc.repeat_delay = 600;
|
||||
rc.screen_edge_strength = 20;
|
||||
rc.snap_edge_range = 1;
|
||||
rc.snap_top_maximize = true;
|
||||
}
|
||||
|
||||
static struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue