qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Why X grabs for absolute windows?


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] Why X grabs for absolute windows?
Date: Thu, 19 Sep 2013 12:18:12 +0200

  Hi,

> I put printf statements in ui/sdl.c in sdl_grab_start() and _end(),
> and entering the window with either tablet or wacom-tablet causes
> those methods to be called and grabs taken.  To the user it doesn't
> appear to be grabbed as the grab gets released when the pointer
> reaches the edge, but the grab is still taken (and busy-loops if it
> can't be taken successfully).
> 
> This isn't at boot time, this is with a Linux guest running X.

Ah, yes, there is also the keyboard grab, forgot about that one.  That
is needed to make sure the hotkeys go to the guest and don't get catched
by apps such as the window manager on the host.

Seems SDL has no separate keyboard/pointer grabs, so it grabs (all)
input no matter what.  Hmm.

Any chance to try the gtk frontend?  That should behave better, and it
also has an option to turn off the keyboard grab.

> Similar patches to SDL have been rejected before because it breaks the
> API, so I don't see the bug in SDL getting resolved.

Oh, didn't realize the bug is in the sdl library.  That is a bit more
complicated then.  SDL would need a new grab function with proper error
handling then.

cheers,
  Gerd





reply via email to

[Prev in Thread] Current Thread [Next in Thread]