case SWT.Dispose: if (context != 0) { GLX.glXDestroyContext (xdisplay, context); context = 0; } if (glWindow != 0) { OS.gdk_window_destroy (glWindow); glWindow = 0; } break;
		public void handleEvent (Event event) {			switch (event.type) {			case SWT.Paint:				/**				* Bug in MESA.  MESA does some nasty sort of polling to try				* and ensure that their buffer sizes match the current X state.				* This state can be updated using glViewport().				* FIXME: There has to be a better way of doing this.				*/				int [] viewport = new int [4];				GL.glGetIntegerv (GL.GL_VIEWPORT, viewport);				GL.glViewport (viewport [0],viewport [1],viewport [2],viewport [3]);				break;			case SWT.Resize:				Rectangle clientArea = getClientArea();				OS.gdk_window_move (glWindow, clientArea.x, clientArea.y);				OS.gdk_window_resize (glWindow, clientArea.width, clientArea.height);				break;			}		}