diff options
author | tissoire | 2009-09-25 11:46:48 +0000 |
---|---|---|
committer | tissoire | 2009-09-25 11:46:48 +0000 |
commit | 83351a0f1b8e9a41a70a5f8951448ab0c9aaafd3 (patch) | |
tree | e2356944927380816bd3390a09c22bb71c12c6b2 /src/ivypointer.c | |
parent | ed0a75ad647823e7610b2a62a320feb96714ed13 (diff) | |
download | ivypointer-83351a0f1b8e9a41a70a5f8951448ab0c9aaafd3.zip ivypointer-83351a0f1b8e9a41a70a5f8951448ab0c9aaafd3.tar.gz ivypointer-83351a0f1b8e9a41a70a5f8951448ab0c9aaafd3.tar.bz2 ivypointer-83351a0f1b8e9a41a70a5f8951448ab0c9aaafd3.tar.xz |
backward compatibility (option -c)
inversion lock/unlock
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]); |