Re: [Spice-devel] [PATCH] Disable IME to allow receiving all keys

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ack, I am going to push it.

Thanks,
Pavel

On Mon, 2016-04-18 at 14:55 +0100, Frediano Ziglio wrote:
> From: Christophe Fergeau <cfergeau@xxxxxxxxxx>
> 
> This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1297640
> 
> Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  src/virt-viewer-util.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/src/virt-viewer-util.c b/src/virt-viewer-util.c
> index 279f9a5..8cf52ec 100644
> --- a/src/virt-viewer-util.c
> +++ b/src/virt-viewer-util.c
> @@ -30,6 +30,7 @@
>  #ifdef G_OS_WIN32
>  #include <windows.h>
>  #include <io.h>
> +#include <imm.h>
>  #endif
>  
>  #include <sys/types.h>
> @@ -272,6 +273,12 @@ void virt_viewer_util_init(const char *appname)
>          dup2(fileno(stdout), STDOUT_FILENO);
>          dup2(fileno(stderr), STDERR_FILENO);
>      }
> +
> +    /* Disable input method handling so that the Zenkaku_Hankaku can
> be passed
> +     * to VMs rather than being captured by Windows.
> +     * https://bugzilla.redhat.com/show_bug.cgi?id=1297640
> +     */
> +    ImmDisableIME(-1);
>  #endif
>  
>      setlocale(LC_ALL, "");

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux