thild's picture

Title not set in native X11 window

Project:The Open Toolkit library
Version:1.0-2010-10-06
Component:Code
Category:bug report
Priority:normal
Assigned:thild
Status:closed
Description

This patch fix the problem.

Trunk version.

Index: X11GLNative.cs
===================================================================
--- X11GLNative.cs (revision 2700)
+++ X11GLNative.cs (working copy)
@@ -161,7 +161,7 @@
window.WindowHandle = Functions.XCreateWindow(window.Display, window.RootWindow,
x, y, width, height, 0, window.VisualInfo.Depth/*(int)CreateWindowArgs.CopyFromParent*/,
(int)CreateWindowArgs.InputOutput, window.VisualInfo.Visual, (UIntPtr)mask, ref attributes);
-
+ this.Title = title;
if (window.WindowHandle == IntPtr.Zero)
throw new ApplicationException("XCreateWindow call failed (returned 0).");
}


Comments

Comment viewing options

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

#1

Version:1.0-beta-3» 1.x-dev
the Fiddler's picture

#2

Version:1.x-dev» 1.0.0-rc1
Status:open» fixed

Thanks, fixed in r2701 with a slightly different patch (use XStoreName directly, as the Title property raises a TitleChanged event that we don't want here).

the Fiddler's picture

#3

Status:fixed» closed

Closing issues fixed in opentk-1.0-2010-10-06 release.

the Fiddler's picture

#4

Version:1.0.0-rc1» 1.0-2010-10-06