From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14350 invoked by alias); 15 Jul 2010 14:41:02 -0000 Received: (qmail 14336 invoked by uid 22791); 15 Jul 2010 14:41:01 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail92.messagelabs.com (HELO mail92.messagelabs.com) (194.106.220.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Jul 2010 14:40:22 +0000 X-VirusChecked: Checked X-Env-Sender: richard.evans@datanomic.com X-Msg-Ref: server-15.tower-92.messagelabs.com!1279204818!8366157!16 X-StarScan-Version: 6.2.4; banners=-,-,- Received: (qmail 20844 invoked from network); 15 Jul 2010 14:40:19 -0000 Received: from hostedexchange.hostedservice.com (HELO outlook.hostedservice2.net) (217.28.130.38) by server-15.tower-92.messagelabs.com with RC4-SHA encrypted SMTP; 15 Jul 2010 14:40:19 -0000 Received: from THHS2EXBE2X.hostedservice2.net (192.168.33.20) by thhs2e12ht02.hostedservice2.net (192.168.16.112) with Microsoft SMTP Server id 8.2.254.0; Thu, 15 Jul 2010 15:40:17 +0100 Received: from THHS2EXBE1X.hostedservice2.net ([192.168.16.22]) by THHS2EXBE2X.hostedservice2.net with Microsoft SMTPSVC(6.0.3790.1830); Thu, 15 Jul 2010 15:39:20 +0100 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Mouse offset when using java swing based gui applications Date: Thu, 15 Jul 2010 14:41:00 -0000 Message-ID: <974066EF77EEA44EB8AED6ADA05DBD0201FFDEFB@THHS2EXBE1X.hostedservice2.net> In-Reply-To: <4C3F0F49.5090506@dronecode.org.uk> References: <4C3F0F49.5090506@dronecode.org.uk> From: Richard Evans To: CC: "Jon TURNEY" 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 X-SW-Source: 2010-07/txt/msg00036.txt.bz2 There's a bug reported against Java relating to this, with some more details. It claims to be fixed, but it still occurs. There's a small test case in the bug report. It makes many Java UI applications unusable with Cygwin/X. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=3D6434227 Richard -----Original Message----- From: Jon TURNEY [mailto:jon.turney@dronecode.org.uk]=20 Sent: 15 July 2010 14:38 To: cygwin-xfree@cygwin.com Cc: jonas_winkler@gmx.de Subject: Re: Mouse offset when using java swing based gui applications On 13/07/2010 22:56, Jonas Winkler wrote: > I just noticed a very strange behaviour of my Cygwin/X-setup. I have a > laptop running Debian 5.0 and openssh-server 1.5.1. My windows7 x64 > machine is running cygwin 1.7.5 and cygwin/x 1.8.0 (fresh installation). > I'm using ssh and x forwarding to use gui applications - especially > Netbeans 6.9 - on my windows machine. > > So far, all X applications run fine on windows. Using Netbeans is > somewhat weird. After startup, i can use the menues, edit code, etc. But > as soon as I change the window position (moving, maximizing) of > Netbeans, it seems as if the position of the window actually does not > change. Clicking works, but selecting a menu item not. I need to click > and hold on the menu item, drag the mouse to the position where the menu > would be before moving the window and then release it. > > Same goes for code completition windows - they pop up where they should > be before moving the window. > > I investigated a bit more and build a very basic Java gui application > using swing (same library used by netbeans to display gui elemets) and > the problem persists. As said before other applications (tested: > gnome-terminal, gedit and nautilus) just work fine. So this is a > swing-related rather than a netbeans-related problem. > > I attached the cygcheck.out. I dont know what other kind of information > I should provide, so if there's anything you need, please let me know. Thanks very much for the clear problem report. We've had some similar reports before of problems with the mouse position=20 reporting with Java applications, for e.g. [1], but I've never had a simple=20 test case that has allowed me to reproduce it and investigate. So, I'd be very interested to see your simple Java application which=20 demonstrates the problem. If you could also start the Xserver with the '-logverbose 3' option and attach=20 your /var/log/XWin.0.log, that would be most helpful. [1] http://sourceware.org/ml/cygwin-xfree/2009-08/msg00060.html --=20 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/