Getting Key and Create events from all window children with Xt
Hello,
I want to write a plugin for codeblocks, that can record Keyboard macros. I am currently trying around with Xt how to get keyevents. This is my Program so far: Code:
#include <iostream> As you can see, in AddWindow I am trying to get events from all childwindows. It does not help, I do not get key or CreateNotify events nor do I get Key events while in the menu or a dialog. Any help? Thanks! Nathan |
I don't get a window at all.
Wouldn't you better adding an eventhandler man XtAddEventHandler to grab keypresses on the mainwindow? these should(?) propogate down. Is there a reason why you are processing the Event queue directly instead of using XtAppMainLoop and event handlers? what distro? |
Hi,
Thanks for your reply! It does not open a window, it just "connects" to the focues window, which is the gnome-terminal in my case. Using XtAddEventHandler and XtAppMainLoop does not make a difference. I did not use them beacuse ... well, bevause I am used to have a event loop as in my example. My distro is gentoo. Nathan |
well, a new window such as a new terminal will not be a child window
the menu probably has an event handler for the keypress with the propogate set to off |
I just find out about the X record extension. Maybe I have more luck with that.
Thanks for the replies. Nathan |
All times are GMT -5. The time now is 07:30 AM. |