This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: An issue with libX11?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]