From 25f82c8b84e118f7fb9998bb21ae0c0f39db45d5 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 5 Aug 2007 16:15:15 +0000 Subject: [PATCH] Corrected spelling errors in X11.CreateWindow enum. Create event now fires from X11GLNative windows (added CreateWindow.SubStructureNotifyMask). Changed X11Input window to InputOnly. --- Source/OpenTK/Platform/X11/API.cs | 6 +++--- Source/OpenTK/Platform/X11/X11GLNative.cs | 1 + Source/OpenTK/Platform/X11/X11Input.cs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/OpenTK/Platform/X11/API.cs b/Source/OpenTK/Platform/X11/API.cs index 7cc8fb76..2d93efac 100644 --- a/Source/OpenTK/Platform/X11/API.cs +++ b/Source/OpenTK/Platform/X11/API.cs @@ -932,7 +932,7 @@ XF86VidModeGetGammaRampSize( ButtonMotionMask = (1L<<13), KeymapStateMask = (1L<<14), ExposureMask = (1L<<15), - VisibiityChangeMask = (1L<<16), + VisibilityChangeMask = (1L<<16), StructureNotifyMask = (1L<<17), ResizeRedirectMask = (1L<<18), SubstructureNotifyMask = (1L<<19), @@ -941,9 +941,9 @@ XF86VidModeGetGammaRampSize( FocusChangeMask = (1L<<21), PropertyChangeMask = (1L<<22), CoormapChangeMask = (1L<<23), - ButtonReeaseMask = (1L<<3), + ButtonReleaseMask = (1L<<3), EnterWindowMask = (1L<<4), - eaveWindowMask = (1L<<5), + LeaveWindowMask = (1L<<5), PointerMotionMask = (1L<<6), PointerMotionHintMask = (1L<<7), Button1MotionMask = (1L<<8), diff --git a/Source/OpenTK/Platform/X11/X11GLNative.cs b/Source/OpenTK/Platform/X11/X11GLNative.cs index d6d63b06..013dd5a8 100644 --- a/Source/OpenTK/Platform/X11/X11GLNative.cs +++ b/Source/OpenTK/Platform/X11/X11GLNative.cs @@ -116,6 +116,7 @@ namespace OpenTK.Platform.X11 //API.CreateColormap(display, rootWindow, glxVisualInfo.visual, 0/*AllocNone*/); wnd_attributes.event_mask = EventMask.StructureNotifyMask | + EventMask.SubstructureNotifyMask | EventMask.ExposureMask; CreateWindowMask cw_mask = diff --git a/Source/OpenTK/Platform/X11/X11Input.cs b/Source/OpenTK/Platform/X11/X11Input.cs index 17dd2e36..a8966818 100644 --- a/Source/OpenTK/Platform/X11/X11Input.cs +++ b/Source/OpenTK/Platform/X11/X11Input.cs @@ -44,7 +44,7 @@ namespace OpenTK.Platform.X11 //glxVisualInfo.depth, //glContext.XVisualInfo.depth, 0, - Constants.InputOutput, + Constants.InputOnly, //glxVisualInfo.visual, //glContext.XVisualInfo.visual, IntPtr.Zero,