Zhenghui Zhou wrote:
> I am running a gtk+/gtkmm program under embedded linux, I used linux-fb
> support before, but it had been not supported for a long time, so I want to
> change to directfb now. Thank you all for your great work.
> 
> But when I test my program under the latest gtk+/directfb, I found I cann't
> get any keyboard reponse in some dialog. Since the embedded linux box
> doesn't has any mouse/point device, the GUI's is accessed with keyboard
> only.
> 
> As tested, I found, even with a mouse, when it point on the dialog when the
> dialog show, though can get input of the mouse, the dialog doesn't grad the
> focus , which mean cann't get keyboard event at default.
> 
Since window manager level is still different or some what missing in
the directfb gdk port, window manager didn't grub the dialog so input is
not passing in to the dialog, what you can do is force the window
manager to grab the dialog. ( maybe it is related to
gdk_window_set_keep_above function? )

> And I tested more, when I moved the mouse out the dialog and moved in again,
> now the dialog get the input focus of keyboad, can get keyboard event now.

when you get in and out the gtk dialog, the window manager grab the
dialog and put pass the input channel into the dialog so it work again.

> 
> I haven't get any method to solve this problem, any help is appreciated very
> much.

You can change the default window manager or unique to solve your
problem, or you can internally keep track of all the widget and make
sure it get the input channel and draw in the correct order.


> 
> Regrads,
> Zhenghui Zhou
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> directfb-dev mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev


_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to