Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 57077 invoked from network); 25 Sep 2007 10:21:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Sep 2007 10:21:13 -0000 Received: (qmail 32498 invoked by uid 500); 25 Sep 2007 10:21:02 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 32477 invoked by uid 500); 25 Sep 2007 10:21:02 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 32459 invoked by uid 99); 25 Sep 2007 10:21:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2007 03:21:02 -0700 X-ASF-Spam-Status: No, hits=-98.8 required=10.0 tests=ALL_TRUSTED,DNS_FROM_DOB,RCVD_IN_DOB X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2007 10:21:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C320B71420D for ; Tue, 25 Sep 2007 03:20:50 -0700 (PDT) Message-ID: <22837948.1190715650795.JavaMail.jira@brutus> Date: Tue, 25 Sep 2007 03:20:50 -0700 (PDT) From: "Alexey Petrenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-4826) [classlib][awt] MouseEvent can not fall into desired component in Insets In-Reply-To: <7395368.1190275231976.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Petrenko closed HARMONY-4826. ------------------------------------ > [classlib][awt] MouseEvent can not fall into desired component in Insets > ------------------------------------------------------------------------ > > Key: HARMONY-4826 > URL: https://issues.apache.org/jira/browse/HARMONY-4826 > Project: Harmony > Issue Type: Test > Components: Classlib > Environment: Win32 + Linux32 > Reporter: Chunrong Lai > Assignee: Alexey Petrenko > Priority: Minor > Attachments: HARMONY-4826-MouseDispatcher.patch > > > I am not sure if it is a bug or not. > In some applications I did observe that some containers (with customized LayoutManager) layout child-components in the Insets-Area! One example is the floating toolbar. Programmers may layout the fixed titlebar in (customized) Insets-Area but layout the variable buttons in normal area. > The problem is that, the mouse event is just filtered at Insets-Area in Harmony (to optimize it, I believe) so above titleBar does not respond to Mouse at all. See below funtion in awt/src/main/java/common/java/awt/MouseDispatcher.java > private void fall2Child(PointerInfo info) { > Insets insets = info.src.getInsets(); > final Point pos = info.position; > final int x = pos.x; > final int y = pos.y; > if ((x >= insets.left) && (y >= insets.top) && > (x < (info.src.w - insets.right)) && > (y < (info.src.h - insets.bottom))) // Is this optimization necessary? > { > Component[] children = ((Container) info.src).getComponents(); > for (Component child : children) { > ..... > It is also seen that RI works for such special components. > Discussion is welcome. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.