
Title not set in native X11 window
Posted Monday, 10 May, 2010 - 23:52 by thild| Project: | The Open Toolkit library |
| Version: | 1.0-2010-10-06 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | thild |
| Status: | closed |
Jump to:
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
#1
#2
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).
#3
Closing issues fixed in opentk-1.0-2010-10-06 release.
#4