SolarisIA.patch revision 688
###############################################################################
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use subject to license terms.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, and/or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, provided that the above
# copyright notice(s) and this permission notice appear in all copies of
# the Software and that both the above copyright notice(s) and this
# permission notice appear in supporting documentation.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
# Except as contained in this notice, the name of a copyright holder
# shall not be used in advertising or otherwise to promote the sale, use
# or other dealings in this Software without prior written authorization
# of the copyright holder.
#
diff -urp -x '*~' -x '*.orig' src/Makefile.am src/Makefile.am
--- src/Makefile.am 2009-03-24 23:25:04.606874000 -0700
+++ src/Makefile.am 2009-03-24 23:25:15.736876000 -0700
@@ -357,6 +357,9 @@ libX11_la_SOURCES += \
endif
+# SolarisIA extension
+libX11_la_SOURCES += XInteractive.c
+
#
# Figure out which sub-libraries to link into Xlib
#
diff -urp -x '*~' -x '*.orig' src/OpenDis.c src/OpenDis.c
--- src/OpenDis.c 2009-03-24 23:25:04.479607000 -0700
+++ src/OpenDis.c 2009-03-24 23:25:15.742861000 -0700
@@ -47,6 +47,11 @@ in this Software without prior written a
#include "XKBlib.h"
#endif /* XKB */
+/* begin SUNSOFT_INTERACTIVE */
+#include <X11/extensions/interactive.h>
+#include <X11/extensions/XInteractive.h>
+/* end SUNSOFT_INTERACTIVE */
+
#if !USE_XCB
#ifdef X_NOT_POSIX
#define Size_t unsigned int
@@ -756,6 +761,21 @@ XOpenDisplay (
#ifdef XKB
XkbUseExtension(dpy,NULL,NULL);
#endif
+/* begin SUNSOFT_INTERACTIVE */
+ {
+
+ long pid = (long) getpid();
+ int majorop, first_event, first_error;
+ int majorv, minorv;
+
+ if ( (XQueryExtension(dpy, "SolarisIA",
+ &majorop, &first_event, &first_error)==True)) {
+ XSolarisIASetProcessInfo(dpy, (unsigned char *)&pid,
+ INTERACTIVE_INFO, 1);
+ }
+ }
+/* end SUNSOFT_INTERACTIVE */
+
/*
* and return successfully
*/