1
qemu: improve sdl title information
3
Include the `-name XXX` commandline param in the gnome-panel window list
6
https://bugs.edge.launchpad.net/ubuntu/+source/qemu-kvm/+bug/423076
9
Subject: [Qemu-devel] [PATCH] Set SDL icon_title when using `-name XXX` for proper gnome-panel window list integration
10
Date: Thu, 17 Sep 2009 12:09:51 +0100
12
diff --git a/sdl.c b/sdl.c
13
index de63c7f..42b6f37 100644
16
@@ -407,7 +407,8 @@ static void sdl_process_key(SDL_KeyboardEvent *ev)
18
static void sdl_update_caption(void)
21
+ char win_title[1024];
22
+ char icon_title[1024];
23
const char *status = "";
26
@@ -419,12 +420,15 @@ static void sdl_update_caption(void)
27
status = " - Press Ctrl-Alt-Shift to exit grab";
31
- snprintf(buf, sizeof(buf), "QEMU (%s)%s", qemu_name, status);
33
- snprintf(buf, sizeof(buf), "QEMU%s", status);
35
+ snprintf(win_title, sizeof(win_title), "QEMU (%s)%s", qemu_name, status);
36
+ snprintf(icon_title, sizeof(icon_title), "QEMU (%s)", qemu_name);
38
+ snprintf(win_title, sizeof(win_title), "QEMU%s", status);
39
+ snprintf(icon_title, sizeof(icon_title), "QEMU");
42
- SDL_WM_SetCaption(buf, "QEMU");
43
+ SDL_WM_SetCaption(win_title, icon_title);
46
static void sdl_hide_cursor(void)