Re: An issue with libX11?

Jon TURNEY <[email protected]>
Newsgroups gmane.os.cygwin.xfree
Message-ID <[email protected]>
On 09/11/2014 15:38, Angelo Graziosi wrote:
> From another application I have an issue with libX11 which I can
> reproduce with the following STC,

I don't think this test case is well-formed.

> int main()
> {
>    dis = XOpenDisplay(NULL);
>    win = XCreateSimpleWindow(dis, RootWindow(dis, 0), 1, 1, 500, 500,
>                              0, BlackPixel (dis, 0), BlackPixel(dis, 0));
>
>    XMapWindow(dis, win);

A 'XSelectInput(dis, win, KeyPress)' is needed here to tell the X server 
that this client wishes to receive KeyPress event.s

> I am not an X11 expert, so it could be I am doing the wrong things but
> the same code runs fine on OSX+XQuartz and GCC-4.9.1.

I tried with XQuartz 2.7.8_beta1 and I couldn't reproduce that.

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.