Re: [Qemu-devel] [PATCH] gtk: Grab pointer on click when in relative mode

2014-04-03 Thread Takashi Iwai
At Wed, 02 Apr 2014 16:18:15 -0400, Cole Robinson wrote: On 04/02/2014 11:25 AM, Takashi Iwai wrote: At Wed, 02 Apr 2014 17:19:51 +0200, Gerd Hoffmann wrote: On Mi, 2014-04-02 at 11:07 -0400, Cole Robinson wrote: +if (button-button == 1 +button-type == GDK_BUTTON_PRESS

[Qemu-devel] [PATCH] gtk: Grab pointer on click when in relative mode

2014-04-02 Thread Cole Robinson
Without this, we need to initiate a manual grab with ctrl+alt+g just to get a usable mouse. Signed-off-by: Cole Robinson crobi...@redhat.com --- Gerd, Takashi, I think this should do what we want. ui/gtk.c | 9 + 1 file changed, 9 insertions(+) diff --git a/ui/gtk.c b/ui/gtk.c index

Re: [Qemu-devel] [PATCH] gtk: Grab pointer on click when in relative mode

2014-04-02 Thread Gerd Hoffmann
On Mi, 2014-04-02 at 11:07 -0400, Cole Robinson wrote: +if (button-button == 1 +button-type == GDK_BUTTON_PRESS +!gd_is_grab_active(s) +!qemu_input_is_absolute()) { + gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(s-grab_item), +

Re: [Qemu-devel] [PATCH] gtk: Grab pointer on click when in relative mode

2014-04-02 Thread Takashi Iwai
At Wed, 02 Apr 2014 17:19:51 +0200, Gerd Hoffmann wrote: On Mi, 2014-04-02 at 11:07 -0400, Cole Robinson wrote: +if (button-button == 1 +button-type == GDK_BUTTON_PRESS +!gd_is_grab_active(s) +!qemu_input_is_absolute()) { +

Re: [Qemu-devel] [PATCH] gtk: Grab pointer on click when in relative mode

2014-04-02 Thread Cole Robinson
On 04/02/2014 11:25 AM, Takashi Iwai wrote: At Wed, 02 Apr 2014 17:19:51 +0200, Gerd Hoffmann wrote: On Mi, 2014-04-02 at 11:07 -0400, Cole Robinson wrote: +if (button-button == 1 +button-type == GDK_BUTTON_PRESS +!gd_is_grab_active(s) +