summaryrefslogtreecommitdiff
path: root/app/xinput/src/setmode.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/xinput/src/setmode.c')
-rw-r--r--app/xinput/src/setmode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/xinput/src/setmode.c b/app/xinput/src/setmode.c
index 4bac6df34..6812fdfd6 100644
--- a/app/xinput/src/setmode.c
+++ b/app/xinput/src/setmode.c
@@ -49,8 +49,11 @@ set_mode(Display *display,
if (strcmp(argv[1], "ABSOLUTE") == 0) {
mode = Absolute;
- } else {
+ } else if (strcmp(argv[1], "RELATIVE") == 0) {
mode = Relative;
+ } else {
+ fprintf(stderr, "Invalid mode, use ABSOLUTE or RELATIVE.\n");
+ return EXIT_FAILURE;
}
device = XOpenDevice(display, info->id);