RootWindow is now accessed through GDK.Screen instead. It is deprecated in GTK3.

This commit is contained in:
Jarl Gullberg 2017-06-13 23:06:39 +02:00
parent cb42feef20
commit 5dce9161bd
No known key found for this signature in database
GPG key ID: 750FF6F6BDA72D23

View file

@ -408,7 +408,7 @@ namespace OpenTK
else if (Configuration.RunningOnMacOS)
_WindowInfo = OSXWindowInfoInitializer.Initialize(widgetWindowHandle);
else
_WindowInfo = XWindowInfoInitializer.Initialize(graphicsMode, this.Display.Handle, this.Screen.Number, widgetWindowHandle, this.RootWindow.Handle);
_WindowInfo = XWindowInfoInitializer.Initialize(graphicsMode, this.Display.Handle, this.Screen.Number, widgetWindowHandle, this.Screen.RootWindow.Handle);
// GraphicsContext
_GraphicsContext = new GraphicsContext(graphicsMode, _WindowInfo, GlVersionMajor, GlVersionMinor, _GraphicsContextFlags);