VeliV's picture

Running apps in Mac OSX start a application called X11

Project:The Open Toolkit library
Version:1.0-beta-1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Is this intentional? Latest OSX, latest mono, trunk build.

using System;
using System.Windows.Forms;
using System.Drawing;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;
 
public class HelloWorld : Form
{
  OpenTK.GLControl glControl = new OpenTK.GLControl();
 
  static public void Main()
  {
    Application.Run(new HelloWorld());
  }
 
  	public HelloWorld()
  	{
	    Text = "Hello World";
		Height = 600;
		Width = 800;
		CenterToScreen();
 
		glControl.Dock = DockStyle.Fill; // I hope I got this right     
	    glControl.Paint += (sender, e) =>
	    {
			GL.ClearColor(Color.Black);
       		glControl.SwapBuffers();
	    };
 
		Controls.Add(glControl);
  	}
 
}

It starts up a X11 application to the dock and it doesn't quit after I kill my own app. Any way to prevent that from starting? :D


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Status:open» in progress (review)

X11 is a component present on most Unix systems, including Mac OS X. It seems that OpenTK's platform detection code is causing X11 to initialize itself, even though we do not actually use it on Mac OS X (we rely on native APIs instead).

I've added a workaround to rev. 2470, which avoids detecting X11 if we are running on Mac OS X. This should fix the issue.

VeliV's picture

#2

Works now without that starting. Thanks again ;)

the Fiddler's picture

#3

Status:in progress (review)» fixed
the Fiddler's picture

#4

Version:0.9.x-dev» 1.0-beta-1
Status:fixed» closed

Closing issues fixed in 1.0 beta-1.