public MainWindow() {
		_frame = new JFrame("MarbleMadnessClone");
		_frame.setSize(200, 200);
		_frame.setUndecorated(true);
		GraphicsDevice graphicDev = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
		//if (graphicDev.isFullScreenSupported()) {
		//	graphicDev.setFullScreenWindow(_frame);
		//}
		graphicDev.setFullScreenWindow(_frame);
		_canvas = new GLCanvas(new GLCapabilities());
		_canvas.setSize(200, 200);
		_frame.add(_canvas);
		// komenda do shella (w linuxie, wylaczenie key-repeat)
		// do ominiecia w windowsie ustawiac locki na akcje
		if (System.getProperty("os.name").toLowerCase().contains("linux")) {
			Runtime mycommand=java.lang.Runtime.getRuntime();
			try {
				mycommand.exec("xset -r");
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} 
		}
		_canvas.requestFocus();
		//autorepeat on
		_frame.addWindowListener(new WindowAdapter() {
			
			@Override
			public void windowClosing(WindowEvent we) {
				if (System.getProperty("os.name").toLowerCase().contains("linux")) {
					Runtime mycommand=java.lang.Runtime.getRuntime();
					try {
						mycommand.exec("xset r");
					} catch (IOException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					} 
				}
			}
			
		});
		
		hideCursor();
		
	}