Re: window on top of parent window



Hi all,

I tried to Grab some keys in my gtk window.
Like bellow but fail.
What is the problem in my code.
Please help me.

    Window xwin;
    Display *dpy;
    int keycodeToGrab;
    GdkWindowPrivate *window_private;

     window_private = (GdkWindowPrivate*) window->window;
     keycodeToGrab = XKeysymToKeycode(window_private->xdisplay, XK_i );
                
    XGrabKey(window_private->xdisplay, keycodeToGrab, ControlMask,
            window_private->xwindow, True, GrabModeAsync, GrabModeAsync );

From: Heeyeon Hwang
    hyhwang iname com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]