mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
config: add option for forcing mouse emulation
Default is off. Also allow switching with reconfigure.
This commit is contained in:
parent
be72c4bde3
commit
6d05bed883
3 changed files with 8 additions and 2 deletions
|
|
@ -1020,6 +1020,8 @@ entry(xmlNode *node, char *nodename, char *content)
|
|||
} else {
|
||||
wlr_log(WLR_ERROR, "Invalid value for <resize popupShow />");
|
||||
}
|
||||
} else if (!strcasecmp(nodename, "mouseEmulation.tablet")) {
|
||||
set_bool(content, &rc.tablet.force_mouse_emulation);
|
||||
} else if (!strcasecmp(nodename, "mapToOutput.tablet")) {
|
||||
rc.tablet.output_name = xstrdup(content);
|
||||
} else if (!strcasecmp(nodename, "rotate.tablet")) {
|
||||
|
|
@ -1229,6 +1231,7 @@ rcxml_init(void)
|
|||
rc.doubleclick_time = 500;
|
||||
rc.scroll_factor = 1.0;
|
||||
|
||||
rc.tablet.force_mouse_emulation = false;
|
||||
rc.tablet.output_name = NULL;
|
||||
rc.tablet.rotation = 0;
|
||||
rc.tablet.box = (struct wlr_fbox){0};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue