From 2a77516ba8fb4541cb1ff730c8f5df888314c47e Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Sat, 13 Aug 2011 12:38:13 +0300 Subject: [PATCH] kvm tool, sdl: Set window caption Fix empty window caption for the tool. We should also display the guest name but unfortunately the SDL code doesn't know about "struct kvm" so that requires code reorganization. Signed-off-by: Pekka Enberg --- ui/sdl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/sdl.c b/ui/sdl.c index 6320ce7..a9e7cc7 100644 --- a/ui/sdl.c +++ b/ui/sdl.c @@ -95,6 +95,8 @@ static void *sdl__thread(void *p) flags = SDL_HWSURFACE | SDL_ASYNCBLIT | SDL_HWACCEL | SDL_DOUBLEBUF; + SDL_WM_SetCaption("KVM tool", "KVM tool"); + screen = SDL_SetVideoMode(fb->width, fb->height, fb->depth, flags); if (!screen) die("Unable to set SDL video mode");