From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21727 invoked by alias); 9 Nov 2014 20:50:09 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 21718 invoked by uid 89); 9 Nov 2014 20:50:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtp201.alice.it Received: from smtp201.alice.it (HELO smtp201.alice.it) (82.57.200.97) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 09 Nov 2014 20:50:06 +0000 Received: from [192.168.1.102] (87.21.227.179) by smtp201.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 5409791310EF28EB for cygwin-xfree@cygwin.com; Sun, 9 Nov 2014 21:50:04 +0100 Message-ID: <545FD373.7090008@alice.it> Date: Sun, 09 Nov 2014 20:50:00 -0000 From: Angelo Graziosi User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: An issue with libX11? References: <545F8A73.6010206@alice.it> <545FCBB3.2050108@dronecode.org.uk> In-Reply-To: <545FCBB3.2050108@dronecode.org.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2014-11/txt/msg00007.txt.bz2 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/