From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Sep 19 00:40:14 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 834DF16A41F for ; Mon, 19 Sep 2005 00:40:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00EC643D48 for ; Mon, 19 Sep 2005 00:40:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8J0eD1R034983 for ; Mon, 19 Sep 2005 00:40:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8J0eDlT034981; Mon, 19 Sep 2005 00:40:13 GMT (envelope-from gnats) Resent-Date: Mon, 19 Sep 2005 00:40:13 GMT Resent-Message-Id: <200509190040.j8J0eDlT034981@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, Li-Lun Wang (Leland Wang) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D83C16A41F for ; Mon, 19 Sep 2005 00:34:00 +0000 (GMT) (envelope-from llwang@infor.ck.tp.edu.tw) Received: from infor.ck.tp.edu.tw (infor.ck.tp.edu.tw [203.64.26.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2ACD143D49 for ; Mon, 19 Sep 2005 00:33:59 +0000 (GMT) (envelope-from llwang@infor.ck.tp.edu.tw) Received: by infor.ck.tp.edu.tw (Postfix, from userid 1001) id 9E2F145C2B; Mon, 19 Sep 2005 08:33:57 +0800 (CST) Message-Id: <20050919003357.9E2F145C2B@infor.ck.tp.edu.tw> Date: Mon, 19 Sep 2005 08:33:57 +0800 (CST) From: Li-Lun Wang (Leland Wang) To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/86315: vncviewer in net/tightvnc crashes on local machine desktop switch X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Li-Lun Wang \(Leland Wang\)" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2005 00:40:14 -0000 >Number: 86315 >Category: ports >Synopsis: vncviewer in net/tightvnc crashes on local machine desktop switch >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: Mon Sep 19 00:40:13 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Li-Lun Wang (Leland Wang) >Release: FreeBSD 6.0-BETA5 i386 >Organization: >Environment: System: FreeBSD ll-X31 6.0-BETA5 FreeBSD 6.0-BETA5 #7: Sun Sep 18 17:07:53 CDT 2005 root@ll-X31:/usr/obj/usr/src/sys/X31 i386 >Description: Desktop switch on local machine causes the vncviewer in tightvnc to crash with CleanupXErrorHandler called ShmCleanup called X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 42 (X_SetInputFocus) Serial number of failed request: 5078 Current serial number in output stream: 5078 Ref: http://sourceforge.net/tracker/index.php?func=detail&aid=1202622&group_id=14067&atid=114067 >How-To-Repeat: Use the vncviewer in net/tightvnc to connect to a vncserver. While focusing on vncviewer, switch to another virtual desktop with keyboard. >Fix: diff -urN tightvnc.orig/Makefile tightvnc/Makefile --- tightvnc.orig/Makefile Sat May 28 17:02:40 2005 +++ tightvnc/Makefile Sun Sep 18 19:22:01 2005 @@ -8,6 +8,7 @@ PORTNAME= tightvnc PORTVERSION= 1.2.9 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= vnc-tight diff -urN tightvnc.orig/files/patch-vncviewer::desktop.c tightvnc/files/patch-vncviewer::desktop.c --- tightvnc.orig/files/patch-vncviewer::desktop.c Wed Dec 31 18:00:00 1969 +++ tightvnc/files/patch-vncviewer::desktop.c Sun Sep 18 19:21:17 2005 @@ -0,0 +1,14 @@ +--- vncviewer/desktop.c.orig Thu Jul 31 00:01:00 2003 ++++ vncviewer/desktop.c Sun Sep 18 19:20:06 2005 +@@ -180,8 +180,9 @@ + break; + + case FocusIn: +- XSetInputFocus(dpy, XtWindowOfObject(desktop), RevertToPointerRoot, +- CurrentTime); ++ /** XSetInputFocus(dpy, XtWindowOfObject(desktop), RevertToPointerRoot, ++ CurrentTime); **/ ++ XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); + break; + + case FocusOut: >Release-Note: >Audit-Trail: >Unformatted: