pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/x2vnc Ungrab the pointer on disconnect to avoid en...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/065386dcc21e
branches:  trunk
changeset: 534171:065386dcc21e
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sat Oct 13 11:44:39 2007 +0000

description:
Ungrab the pointer on disconnect to avoid ending up with a dead pointer on
some X servers. Bump PKGREVISION.

diffstat:

 net/x2vnc/Makefile         |   4 ++--
 net/x2vnc/distinfo         |   3 ++-
 net/x2vnc/patches/patch-ab |  27 +++++++++++++++++++++++++++
 3 files changed, 31 insertions(+), 3 deletions(-)

diffs (61 lines):

diff -r 086b6207dd85 -r 065386dcc21e net/x2vnc/Makefile
--- a/net/x2vnc/Makefile        Sat Oct 13 11:42:58 2007 +0000
+++ b/net/x2vnc/Makefile        Sat Oct 13 11:44:39 2007 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.16 2007/01/17 12:12:15 abs Exp $
+# $NetBSD: Makefile,v 1.17 2007/10/13 11:44:39 tnn Exp $
 #
 
 DISTNAME=              x2vnc-1.7.2
+PKGREVISION=           1
 CATEGORIES=            net x11
 MASTER_SITES=          http://fredrik.hubbe.net/x2vnc/
 
@@ -22,4 +23,3 @@
 .include "../../x11/xf86dgaproto/buildlink3.mk"
 .include "../../x11/xineramaproto/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
-
diff -r 086b6207dd85 -r 065386dcc21e net/x2vnc/distinfo
--- a/net/x2vnc/distinfo        Sat Oct 13 11:42:58 2007 +0000
+++ b/net/x2vnc/distinfo        Sat Oct 13 11:44:39 2007 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2007/01/16 13:22:25 abs Exp $
+$NetBSD: distinfo,v 1.7 2007/10/13 11:44:39 tnn Exp $
 
 SHA1 (x2vnc-1.7.2.tar.gz) = aa1ed718e04e6beb3e7db94325198fdf330d8d1e
 RMD160 (x2vnc-1.7.2.tar.gz) = a656365f2b09dd328594d092c1269fcc5c4841c6
 Size (x2vnc-1.7.2.tar.gz) = 82258 bytes
 SHA1 (patch-aa) = 828098e52990d897c49301bf73dbc83258c905da
+SHA1 (patch-ab) = 26895a39de0110c7af8b7843f275790691561168
diff -r 086b6207dd85 -r 065386dcc21e net/x2vnc/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/x2vnc/patches/patch-ab        Sat Oct 13 11:44:39 2007 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-ab,v 1.1 2007/10/13 11:44:39 tnn Exp $
+
+--- x.c.orig   2006-06-14 05:34:41.000000000 +0200
++++ x.c
+@@ -173,6 +173,14 @@ int warn_about_hotkey(Display *dpy, XErr
+  */
+ static Bool mouseOnScreen;
+ 
++static void atexit_ungrab(void) {
++  if (grabbed) {
++    fprintf(stderr, "%s: exit while grabbed, ungrabbing input devices\n",
++            programName);
++    ungrabit(-1, -1, DefaultRootWindow(dpy));
++  }
++}
++
+ /*
+  * CreateXWindow.
+  */
+@@ -534,6 +542,7 @@ Bool CreateXWindow(void)
+   dumpcoord(&origo2);
+   fprintf(stderr,"offset=%d, %d\n",x_offset,y_offset);
+   */
++  atexit(atexit_ungrab);
+     
+   return True;
+ }



Home | Main Index | Thread Index | Old Index