From b373674564a7f080788c973dc396f1c5ca6395c4 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sat, 23 Feb 2008 21:48:32 +0000 Subject: [PATCH] API.cs: Disabled cleanup code on AppDomain.ProcessExit, as it would cause X errors. Renamed libXrandr to libXrandr.so.2 for DllImports. --- Source/OpenTK/Platform/X11/API.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/Platform/X11/API.cs b/Source/OpenTK/Platform/X11/API.cs index 12db994a..1d22ab80 100644 --- a/Source/OpenTK/Platform/X11/API.cs +++ b/Source/OpenTK/Platform/X11/API.cs @@ -65,7 +65,7 @@ namespace OpenTK.Platform.X11 static API() { - AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit); + //AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit); defaultDisplay = Functions.XOpenDisplay(IntPtr.Zero); defaultScreen = Functions.XDefaultScreen(DefaultDisplay); rootWindow = Functions.XRootWindow(DefaultDisplay, DefaultScreen); @@ -1345,7 +1345,7 @@ XF86VidModeGetGammaRampSize( #region Xrandr - const string XrandrLibrary = "libXrandr"; + const string XrandrLibrary = "libXrandr.so.2"; [DllImport(XrandrLibrary)] public static extern Bool XRRQueryExtension(Display dpy, ref int event_basep, ref int error_basep);