From llwang@infor.ck.tp.edu.tw  Mon Sep 19 00:34:00 2005
Return-Path: <llwang@infor.ck.tp.edu.tw>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7D83C16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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) <llwang@infor.org>
Reply-To: Li-Lun Wang (Leland Wang) <llwang@infor.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: vncviewer in net/tightvnc crashes on local machine desktop switch
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 19 00:40:13 GMT 2005
>Closed-Date:    Tue Sep 20 13:25:35 GMT 2005
>Last-Modified:  Tue Sep 20 13:25:35 GMT 2005
>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:
State-Changed-From-To: open->feedback 
State-Changed-By: vs 
State-Changed-When: Tue Sep 20 12:14:48 GMT 2005 
State-Changed-Why:  
This looks highly application-specific. Also, the URL does not seem to 
be correct. Can you please submit this to the original developers 
(if you haven't done so yet)? If they acknolwedge this bug, we can either 
update or import it locally until it is fixed upstream. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86315 

From: "Li-Lun Wang (Leland Wang)" <llwang@infor.org>
To: Volker Stolz <vs@FreeBSD.org>
Cc: freebsd-ports-bugs@FreeBSD.org, bug-followup@FreeBSD.org
Subject: Re: ports/86315: vncviewer in net/tightvnc crashes on local machine desktop switch
Date: Tue, 20 Sep 2005 20:59:27 +0800

 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 On Tue, Sep 20, 2005 at 12:16:53PM +0000, Volker Stolz wrote:
 > This looks highly application-specific. Also, the URL does not seem to
 > be correct. Can you please submit this to the original developers
 > (if you haven't done so yet)? If they acknolwedge this bug, we can either
 > update or import it locally until it is fixed upstream.
 
 Hi,
 Just replace the %26s with the ampersands in the URL and it should work.
 Or use this shortened URL: http://0rz.net/9b0Iy
 I think they have fixed in the trunk, and it will be fixed in the next
 release.
 
 - -- Li-Lun Wang
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (FreeBSD)
 
 iD8DBQFDMAeuCQM7t5B2mhARAilrAJ9mRGXLX+oL0mnpMzAwOM7TdZTXwwCfRf8h
 AglZWKl+yDZnt5QzxWNCotI=
 =hsJQ
 -----END PGP SIGNATURE-----
State-Changed-From-To: feedback->closed 
State-Changed-By: vs 
State-Changed-When: Tue Sep 20 13:25:26 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86315 
>Unformatted:
