xfreerdp: fix command line mouse motion setting.
authorroman-b <romanbarabanov@gmail.com>
Fri, 26 Aug 2011 22:33:07 +0000 (01:33 +0300)
committerroman-b <romanbarabanov@gmail.com>
Fri, 26 Aug 2011 22:33:07 +0000 (01:33 +0300)
client/X11/xfreerdp.c
libfreerdp-core/settings.c
libfreerdp-utils/args.c

index e17f91b..9789823 100644 (file)
@@ -310,7 +310,7 @@ boolean xf_pre_connect(freerdp* instance)
        xfi->depth = DefaultDepthOfScreen(xfi->screen);
        xfi->big_endian = (ImageByteOrder(xfi->display) == MSBFirst);
 
-       xfi->mouse_motion = False;
+       xfi->mouse_motion = settings->mouse_motion;
        xfi->complex_regions = True;
        xfi->decoration = settings->decorations;
        xfi->remote_app = settings->remote_app;
index ca900b0..18df81e 100644 (file)
@@ -147,6 +147,7 @@ rdpSettings* settings_new()
 
                settings->uniconv = freerdp_uniconv_new();
                gethostname(settings->client_hostname, sizeof(settings->client_hostname) - 1);
+               settings->mouse_motion = False;
        }
 
        return settings;
index c260c2d..00e189e 100644 (file)
@@ -244,7 +244,7 @@ int freerdp_parse_args(rdpSettings* settings, int argc, char** argv,
                }
                else if (strcmp("-m", argv[index]) == 0)
                {
-                       settings->mouse_motion = 0;
+                       settings->mouse_motion = True;
                }
                else if (strcmp("--app", argv[index]) == 0)
                {