[maemo-developers] Why touch event go through my window

From: Evan JIANG firstfan at gmail.com
Date: Sat Feb 6 17:53:10 EET 2010
Hi all,
   I'm developing an input method for N900.
   The main window is not full screen, and looks like this:
http://www.evan129.com/wp-content/uploads/2009/12/20091225_d151774f028f00e741aecdywcKr7OnKn.png
   It works well in most of times. But in browser application, it's a
bit strange.

   As you can see, there are some buttons in the panel, users can
press the buttons to choose the words. In browser application,
when users pressed the button, the event will go through my window to
the browser. Then because of the press location is not in the same
edit field, the edit field will lose the focus.

I may not explained it clearly. Let me give an easier understanding
example. If the window is in the top of screen, covered the title bar,
then when I press the button on the left-top
corner, it will show the application switch window. That means, the
press event go through my window, and handled by the app swithcer
button.

These are the only 2 places I found that could receive my press event.
But in all other places, I didn't find this happening.

My panel is created with gtk_window_new (GTK_WINDOW_POPUP);
And the buttons are created by gtk_button_new();. I use
g_signal_connect to receive the "clicked" event or
"button-press-event" event.

Does anyone have any idea about that?

Best regards,
Evan JIANG
More information about the maemo-developers mailing list