Application windows title in X windows
Anders Reggestad <[email protected]>
| Newsgroups | gmane.comp.graphics.crystalspace.devel |
|---|---|
| Message-ID | <CAMhTDXAV4gDt1ntwKE5YvcbMNeuoO0Wh6jOznXrmf8NthFRQSA@mail.gmail.com> |
Hi,
When calling the iNativeWindow->SetTitle before the window is mapped CS
will change the value back to the default "Crystal Space Application" text
due to the win_title member variable of the csGraphics2DGLX that isn't
updated when SetTitle is called. The win_title of csGraphics2DGLX is passed
to the xwin->SetTitle when the window is opened.
Following is a patch for this problem. Hope someone can submit this fix.
Index: plugins/video/canvas/openglx/glx2d.h
===================================================================
--- plugins/video/canvas/openglx/glx2d.h (revision 38538)
+++ plugins/video/canvas/openglx/glx2d.h (working copy)
@@ -95,7 +95,7 @@
}
virtual void SetTitle (const char* title)
- { xwin->SetTitle (title); }
+ { win_title = title; xwin->SetTitle (title); }
/** Sets the icon of this window with the provided one.
*
-Magodra
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Crystal-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-develop