private void UpdateWindowTitle(Window titlebar) { var client = WindowIndexByTitle[titlebar].child; var name = String.Empty; if (Xlib.XFetchName(this.display, client, ref name) != Status.Failure) { Xlib.XDrawString(this.display, titlebar, Xlib.XDefaultGC(this.display, Xlib.XDefaultScreen(this.display)), 2, 13, name, name.Length); } }