public inbox for cygwin-xfree@sourceware.org help / color / mirror / Atom feed
From: Angelo Graziosi <angelo.graziosi@alice.it> To: cygwin-xfree@cygwin.com Subject: Re: An issue with libX11? Date: Sun, 09 Nov 2014 20:50:00 -0000 [thread overview] Message-ID: <545FD373.7090008@alice.it> (raw) In-Reply-To: <545FCBB3.2050108@dronecode.org.uk> Il 09/11/2014 21:16, Jon TURNEY ha scritto: > 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 found the issue trying the examples of libXbgi library (http://libxbgi.sourceforge.net), so I tried to create a STC adapting the example discusses here: https://user.xmission.com/~georgeps/documentation/tutorials/Xlib_Beginner.html Anyway, the STC on Cygwin64 doesn't work if I add your suggestion, ... XMapWindow(dis, win); XSelectInput(dis, win, KeyPress); XFlush(dis); ... > >> 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. as I wrote, on OSX it works (there XQuartz is 2.7.7). For this reason I flagged this to X-Cygwin list.. > I tried with XQuartz 2.7.8_beta1 and I couldn't reproduce that. > On which system? OSX? Ciao, Angelo. -- 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/
next prev parent reply other threads:[~2014-11-09 20:50 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-11-09 15:38 Angelo Graziosi 2014-11-09 20:17 ` Jon TURNEY 2014-11-09 20:50 ` Angelo Graziosi [this message] 2014-11-09 21:16 ` Jon TURNEY 2014-11-09 21:32 ` Angelo Graziosi
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=545FD373.7090008@alice.it \ --to=angelo.graziosi@alice.it \ --cc=cygwin-xfree@cygwin.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).