From owner-freebsd-ports-bugs@FreeBSD.ORG Fri May 7 17:50:06 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C8AEE1065672 for ; Fri, 7 May 2010 17:50:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id A63DB8FC08 for ; Fri, 7 May 2010 17:50:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o47Ho6Es013327 for ; Fri, 7 May 2010 17:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o47Ho6bS013326; Fri, 7 May 2010 17:50:06 GMT (envelope-from gnats) Resent-Date: Fri, 7 May 2010 17:50:06 GMT Resent-Message-Id: <201005071750.o47Ho6bS013326@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tom Russo Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 07914106566B for ; Fri, 7 May 2010 17:43:10 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id EAF268FC13 for ; Fri, 7 May 2010 17:43:09 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o47Hh9Rx084310 for ; Fri, 7 May 2010 17:43:09 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o47Hh8EO084309; Fri, 7 May 2010 17:43:08 GMT (envelope-from nobody) Message-Id: <201005071743.o47Hh8EO084309@www.freebsd.org> Date: Fri, 7 May 2010 17:43:08 GMT From: Tom Russo To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/146383: port math/grace seizes mouse cursor on right-click with Xorg-server 1.7.5 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 May 2010 17:50:07 -0000 >Number: 146383 >Category: ports >Synopsis: port math/grace seizes mouse cursor on right-click with Xorg-server 1.7.5 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 07 17:50:06 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Tom Russo >Release: 7.2-STABLE >Organization: >Environment: FreeBSD winston.sandia.gov 7.2-STABLE FreeBSD 7.2-STABLE #0: Fri Nov 20 12:39:58 MST 2009 tvrusso@winston.sandia.gov:/usr/src/sys/i386/compile/WINSTON i386 >Description: Due to a documented bug in xorg-server 1.7.5 (https://bugs.freedesktop.org/show_bug.cgi?id=25400), motif applications that use XmCreatePopupMenu can seize the mouse cursor and not let go. The port math/grace is one such program. In Debian, maintainers have come up with a patch to work around the broken X server behavior. The behavior is documented in: https://bugs.launchpad.net/ubuntu/+source/grace/+bug/552681 >How-To-Repeat: Install Xorg-server 1.7.5,1 (current in ports as of 6 May 2010) Install math/grace Start xmgrace Choose "Data Set Operations" under the data menu. Right-click in the scroll box under "Data Sets." The mouse cursor will now be confined to the bounds of the box, with no way to release it other than to kill xmgrace in a separate terminal (virtual terminal or remote login, as the X display will now be useless). >Fix: The Debian maintainers of the grace package have come up with a patch: http://patch-tracker.debian.org/patch/series/view/grace/1:5.1.22-5/motiflockup.diff I have attached a version of this patch suitable for dropping directly into the ports/math/grace/files directory. With this patch, xmgrace no longer grabs the cursor on right-click. Patch attached with submission follows: --- src/motifutils.c.orig 2010-03-15 20:05:12.742336241 -0700 +++ src/motifutils.c 2010-03-15 20:12:53.885346709 -0700 @@ -118,7 +118,6 @@ extern unsigned long xvlibcolors[]; - static OptionItem *color_option_items = NULL; static int ncolor_option_items = 0; static OptionStructure **color_selectors = NULL; @@ -1621,6 +1620,12 @@ graph_popup_menu = xmalloc(sizeof(GraphPopupMenu)); popup = XmCreatePopupMenu(listp->list, "graphPopupMenu", NULL, 0); +#if XmVersion >= 2000 + XtVaSetValues(popup, XmNpopupEnabled, XmPOPUP_DISABLED, NULL); + XtUngrabButton(listp->list, AnyButton, AnyModifier); +#else + XtVaSetValues(popup, XmNpopupEnabled, False, NULL); +#endif graph_popup_menu->popup = popup; graph_popup_menu->label_item = CreateMenuLabel(popup, "Selection:"); @@ -2243,6 +2248,12 @@ set_popup_menu = xmalloc(sizeof(SetPopupMenu)); popup = XmCreatePopupMenu(listp->list, "setPopupMenu", NULL, 0); +#if XmVersion >= 2000 + XtVaSetValues(popup, XmNpopupEnabled, XmPOPUP_DISABLED, NULL); + XtUngrabButton(listp->list, AnyButton, AnyModifier); +#else + XtVaSetValues(popup, XmNpopupEnabled, False, NULL); +#endif set_popup_menu->popup = popup; set_popup_menu->label_item = CreateMenuLabel(popup, "Selection:"); >Release-Note: >Audit-Trail: >Unformatted: