Passive Input focus

aivils at latnet.lv aivils at latnet.lv
Tue Nov 6 11:05:19 PST 2007


Hi, Peppino!

At this time we all use single focus server. You can try out heavily patched
The Multi-Pointer X Server, which support multiple focus windows.
http://wearables.unisa.edu.au/mpx/

Aivils

Citēju Peppino Incasa <peppino_in_casa at hotmail.com>:

> 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/
>
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg
>







More information about the xorg mailing list