diff options
Diffstat (limited to 'src/ivypointer.c')
-rw-r--r-- | src/ivypointer.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ivypointer.c b/src/ivypointer.c index 85fb017..c72a761 100644 --- a/src/ivypointer.c +++ b/src/ivypointer.c @@ -264,7 +264,7 @@ static void CallbackScreen(IvyClientPtr app, void *user_data, int argc, char *ar // -------------------------------------------------------------------------- static void CallbackLockUnlock(IvyClientPtr app, void *user_data, int argc, char *argv[]) { - locked = strcmp(argv[1-device_input_id_given],"lock"); + locked = strcmp(argv[1-device_input_id_given],"unlock"); } // -------------------------------------------------------------------------- @@ -522,7 +522,7 @@ int main(int argc, char *argv[]) { float coordsO[4] = {0,0,0,0}; int c; int id = -1; - while ((c = getopt(argc, argv, "vb:td:C:rpi:s")) != EOF) + while ((c = getopt(argc, argv, "vb:td:C:rpi:sc:")) != EOF) switch (c) { case 'b': strcpy (busbuf, optarg); @@ -553,6 +553,9 @@ int main(int argc, char *argv[]) { case 's': switch_mode = 1; break; + case 'c': + printf("option '-c' disapeared since 0.0.7\n"); + break; default: printf("bad option : %s\n",(char*)&c); printHelpMsg(argv[0]); |