Re: XGrabKey

2005-08-17 Thread Mario Levinsky
Thank you for your reply, as can I see you suggest using of gdk_display_add_client_message_filter it has parameter GdkAtom message_type but there are no information of it usage and how create GdkAtom as message type, how you use it? >I did something very similar in my app. May be you hear a

Re: XGrabKey

2005-08-17 Thread Tristan Van Berkom
Alex Levin wrote: Hi Mario. I did something very similar in my app. Now that you are using X functions to process those keys, you need to handle them with X instead of GTK. So, keep your GTK key handler for regular keys, but for the keys you've grabbed use something like the following. I'm n

Re: XGrabKey

2005-08-17 Thread Tristan Sloughter
I did this in my program tilda like this: key_grab (gchar *key) { XModifierKeymap *modmap; unsigned int numlockmask = 0; unsigned int modmask = 0; gint i, j; /* Key grabbing stuff taken from yeahconsole who took it from evilwm */ modmap = XGetModifierMapping(dpy); for (i

RE: XGrabKey

2005-08-17 Thread Alex Levin
Hi Mario. I did something very similar in my app. Now that you are using X functions to process those keys, you need to handle them with X instead of GTK. So, keep your GTK key handler for regular keys, but for the keys you've grabbed use something like the following. // This function handles a