mirror of
https://github.com/labwc/labwc.git
synced 2026-04-08 08:21:09 -04:00
include: add config/types.h
This commit is contained in:
parent
6dea8c0dcc
commit
9d49d19cd2
54 changed files with 414 additions and 368 deletions
|
|
@ -4,14 +4,14 @@
|
|||
#include <strings.h>
|
||||
#include <wlr/util/log.h>
|
||||
|
||||
enum motion
|
||||
enum lab_motion
|
||||
tablet_parse_motion(const char *name)
|
||||
{
|
||||
if (!strcasecmp(name, "Absolute")) {
|
||||
return LAB_TABLET_MOTION_ABSOLUTE;
|
||||
return LAB_MOTION_ABSOLUTE;
|
||||
} else if (!strcasecmp(name, "Relative")) {
|
||||
return LAB_TABLET_MOTION_RELATIVE;
|
||||
return LAB_MOTION_RELATIVE;
|
||||
}
|
||||
wlr_log(WLR_ERROR, "Invalid value for tablet motion: %s", name);
|
||||
return LAB_TABLET_MOTION_ABSOLUTE;
|
||||
return LAB_MOTION_ABSOLUTE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue