Passive Input focus

Peppino Incasa peppino_in_casa at hotmail.com
Mon Oct 29 08:55:53 PDT 2007


How can I set the input passive focus to my window? I have implemented this 
code but don't work.

XEvent ev;
Atom a1=XInternAtom(display,"WM_TAKE_FOCUS",0);
Atom a2=XInternAtom(display,"WM_PROTOCOLS",0);
        memset(&ev,0,sizeof(ev));
    ev.type=ClientMessage;
    ev.xclient.type = ClientMessage;
    ev.xclient.display=display;
    ev.xclient.window=window;
    ev.xclient.message_type=a2;
    ev.xclient.format=32;
    ev.xclient.data.l[0]=1;
    ev.xclient.data.l[1]=a1;
    XSendEvent(display,window,0,0,(XEvent *)&ev);

Thank you,
Peppino.

_________________________________________________________________
Gossip? Oroscopo? Celebrità? Tutto su MSN Intrattenimento 
http://intrattenimento.it.msn.com/




More information about the xorg mailing list