solaris-ia.patch revision 1420
1231N/A#
1231N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
1231N/A#
1231N/A# Permission is hereby granted, free of charge, to any person obtaining a
1231N/A# copy of this software and associated documentation files (the "Software"),
1231N/A# to deal in the Software without restriction, including without limitation
1231N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
1231N/A# and/or sell copies of the Software, and to permit persons to whom the
1231N/A# Software is furnished to do so, subject to the following conditions:
1231N/A#
1231N/A# The above copyright notice and this permission notice (including the next
1231N/A# paragraph) shall be included in all copies or substantial portions of the
1231N/A# Software.
1231N/A#
1231N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1231N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1231N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1231N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1231N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1231N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1231N/A# DEALINGS IN THE SOFTWARE.
1231N/A#
1231N/A
1231N/Adiff --git a/main.c b/main.c
1420N/Aindex adc3759..e046531 100644
1231N/A--- a/main.c
1231N/A+++ b/main.c
1420N/A@@ -95,6 +95,8 @@
1231N/A #include <X11/cursorfont.h>
1231N/A #include <X11/Xlocale.h>
1231N/A
1231N/A+#include <X11/extensions/XInteractive.h> /* Solaris addition */
1231N/A+
1231N/A #if OPT_TOOLBAR
1231N/A
1231N/A #if defined(HAVE_LIB_XAW)
1420N/A@@ -4748,6 +4750,12 @@ spawnXTerm(XtermWidget xw)
1420N/A free(TermName);
1420N/A #endif
1231N/A
1231N/A+ /* Solaris addition: add child to our IA scheduling class priority boost */
1231N/A+ if (XSolarisIAQueryExtension(screen->display)) {
1231N/A+ long pids[2] = { getpid(), screen->pid };
1231N/A+ XSolarisIASetProcessInfo(screen->display, (unsigned char *) pids,
1231N/A+ INTERACTIVE_INFO, 2);
1231N/A+ }
1231N/A return 0;
1231N/A } /* end spawnXTerm */
1231N/A