From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31782 invoked by alias); 9 Nov 2014 21:16:24 -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 31714 invoked by uid 89); 9 Nov 2014 21:16:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: out2-smtp.messagingengine.com Received: from out2-smtp.messagingengine.com (HELO out2-smtp.messagingengine.com) (66.111.4.26) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 09 Nov 2014 21:16:22 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 90695207EE for ; Sun, 9 Nov 2014 16:16:20 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Sun, 09 Nov 2014 16:16:20 -0500 Received: from [192.168.1.102] (unknown [86.150.49.235]) by mail.messagingengine.com (Postfix) with ESMTPA id 1DA3F6800FF; Sun, 9 Nov 2014 16:16:20 -0500 (EST) Message-ID: <545FD9A1.2010605@dronecode.org.uk> Date: Sun, 09 Nov 2014 21:16:00 -0000 From: Jon TURNEY Reply-To: cygwin-xfree@cygwin.com User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com CC: "angelo.graziosi@alice.it >> Angelo Graziosi" Subject: Re: An issue with libX11? References: <545F8A73.6010206@alice.it> <545FCBB3.2050108@dronecode.org.uk> <545FD373.7090008@alice.it> In-Reply-To: <545FD373.7090008@alice.it> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2014-11/txt/msg00008.txt.bz2 On 09/11/2014 20:49, Angelo Graziosi wrote: > 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); Oops. I think that should be KeyPressMask. > 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? XQuartz doesn't run on anything else :D -- 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/