I think you need to tell the X server/WM to never give the keyboard
window key focus. i.e Are you doing something like;

  wm_hints = XAllocWMHints();

  wm_hints->input = False;
  wm_hints->flags = InputHint;
  XSetWMHints (clutter_x11_get_display(), 
               clutter_x11_get_stage_window(), 
               wm_hints);
  XFree(wm_hints);

If you dont do that, key presses will just get sent to the keyboard
itself and you probably dont want that.

  == Matthew


On Fri, 2008-02-22 at 13:37 +0530, gaurav wrote:
> Hi,
> 
> I am trying to write an application in clutter, which has to redirect a
> few button presses/key strokes to another GTK application just behind
> the Clutter window in stacking order. 
> 
> Libfakekey used by the matchbox-virtual-keyboard seemed a logical choice
> for passing on modified key-strokes. 
> It uses XTestFakeKeyEvent to send key events to a display. 
> I have tested whether the library works on my system using fakekey-test
> and the matchbox-virtual-keyboard. Both are working.
> I am using matchbox on X as window manager.
> 
> Problem: My clutter application doesn't redirect keys. :)
> 
> Matchbox virtual keyboard seems to be able to position itself as a
> window of type TOOLBAR, with override redirect.  
> My application sets the same X window properties: (for which I have
> mainly referred the matchbox-virtual-keyboard code). 
> However, I couldn't set XSetWindowAttributes related to the
> XWindowCreate as its not exposed for Clutter Window. 
> 
> I tried to use "XChangeWindowAttributes" later on the X window too, but
> on a button press, application crashes.
> 
> 
> My questions: 
> 
> 1) Any way to specify, parameters to XWindowCreate for the Clutter stage
> Xwindow. 
> 
> 2) Any other way to make my Clutter application behave like the
> matchbox-keyboard ? 
> 
> 
> Gaurav Roy..
> 
> 
> 
> 
> 

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to