projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
573bbb0
)
When showing a window's title in the kill prompt, if it doesn't have a title use...
author
Dana Jansens
<danakj@orodu.net>
Thu, 28 Feb 2008 04:11:08 +0000
(23:11 -0500)
committer
Dana Jansens
<danakj@orodu.net>
Thu, 28 Feb 2008 04:11:08 +0000
(23:11 -0500)
openbox/client.c
patch
|
blob
|
history
diff --git
a/openbox/client.c
b/openbox/client.c
index
20a4dff
..
39a5482
100644
(file)
--- a/
openbox/client.c
+++ b/
openbox/client.c
@@
-3410,7
+3410,14
@@
static void client_prompt_kill(ObClient *self)
{ 0, OB_KILL_RESULT_YES }
};
gchar *m;
{ 0, OB_KILL_RESULT_YES }
};
gchar *m;
- const gchar *y;
+ const gchar *y, *title;
+
+ title = self->original_title;
+ if (title[0] == '\0') {
+ /* empty string, so use its parent */
+ ObClient *p = client_search_top_direct_parent(self);
+ if (p) title = p->original_title;
+ }
if (client_on_localhost(self)) {
const gchar *sig;
if (client_on_localhost(self)) {
const gchar *sig;
@@
-3422,13
+3429,13
@@
static void client_prompt_kill(ObClient *self)
m = g_strdup_printf
(_("The window \"%s\" does not seem to be responding. Do you want to force it to exit by sending the %s signal?"),
m = g_strdup_printf
(_("The window \"%s\" does not seem to be responding. Do you want to force it to exit by sending the %s signal?"),
-
self->original_
title, sig);
+ title, sig);
y = _("End Process");
}
else {
m = g_strdup_printf
(_("The window \"%s\" does not seem to be responding. Do you want to disconnect it from the X server?"),
y = _("End Process");
}
else {
m = g_strdup_printf
(_("The window \"%s\" does not seem to be responding. Do you want to disconnect it from the X server?"),
-
self->original_
title);
+ title);
y = _("Disconnect");
}
/* set the dialog buttons' text */
y = _("Disconnect");
}
/* set the dialog buttons' text */