Electronics & Programming


Open Source electronics development and programming

  • You are not logged in.

#1 Dec. 8, 2010 12:45:01

Christian S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Changing GDK events

Hello, I'm facing some situation: I have two toplevel windows, let's say A
and B. A is in front of B. What I want to do is to keep the focus on the
window A while sending the key press/release events to the window B. (see
here for more information:http://stackoverflow.com/questions/4380685/gtk-send-focus-to-a-toplevel-window-without-losing-the-first-toplevel-window).

I tried to set a custom GDK event handler in order to modify the key
press/release events before sending them to GTK, but when I change the
window of the event, there is no effect on the B window (I think the cause
could be the focus on window A and not B). I'm copying the event using
gdk_event_copy() in order to modify it.

Is there another way to do that ? I need to keep the window A in front of
the window B, and still be able to change focus from A to B without changing
the stack appearance order of the windows. If I don't use the custom event
handler, when I click into the window B, it doesn't change the focus from
window A to B, the focus remains in window A, that is my problem.

The backend environment is X11.

Great thanks !
"Forgive, O Lord, my little jokes on Thee, and I'll forgive Thy great big
joke on me."http://pyevolve.sourceforge.net/wordpress/_______________________________________________
gtk-list mailing list


Board footer

Moderator control

Enjoy the 11th of December

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support