<div dir="ltr">Hello,<br><br>Included is a patch I wrote for the following bug: <a href="http://www.virtualbox.org/ticket/3331">http://www.virtualbox.org/ticket/3331</a><br>This is my first time submitting a patch, so I focused on<br>
a trivial problem. Any feedback will be welcome, and I<br>understand it might take time to get reviewed.<br><br>The VBoxSDL console currently displays the working VM name after<br>the string "Sun VirtualBox", which makes it hard to view when the window<br>
is minimized. I replaced the order, and also modified<br>the SDL call under Linux, where the minimized window text<br>omitted the VM name completely.<br>I Tested the patch on Ubuntu 9.10.<br><br>Submitted under the MIT license.<br>
<br>Thanks,<br>Udi<br><br>Index: src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp<br>===================================================================<br>--- src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp    (revision 26385)<br>+++ src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp    (working copy)<br>
@@ -4238,9 +4238,9 @@<br>     char szPrevTitle[1024];<br>     strcpy(szPrevTitle, szTitle);<br> <br>+     /* clear current title */    <br>+    strcpy(szTitle, "");<br> <br>-    strcpy(szTitle, VBOX_PRODUCT " - ");<br>
-<br>     Bstr name;<br>     gMachine->COMGETTER(Name)(name.asOutParam());<br>     if (name)<br>@@ -4359,6 +4359,8 @@<br>             return;<br>     }<br> <br>+    RTStrPrintf(szTitle + strlen(szTitle), sizeof(szTitle) - strlen(szTitle), " - " VBOX_PRODUCT);<br>
+    <br>     /*<br>      * Don't update if it didn't change.<br>      */<br>@@ -4371,7 +4373,7 @@<br> #ifdef VBOX_WIN32_UI<br>     setUITitle(szTitle);<br> #else<br>-    SDL_WM_SetCaption(szTitle, VBOX_PRODUCT);<br>
+    SDL_WM_SetCaption(szTitle, szTitle);<br> #endif<br> }<br></div>