[metacity] window-props: increase window title length in debug messages
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] window-props: increase window title length in debug messages
- Date: Fri, 3 Apr 2015 20:09:44 +0000 (UTC)
commit 24ceab4ecfc09cb96d06c6cb97871edfb83e2463
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Apr 3 23:07:16 2015 +0300
window-props: increase window title length in debug messages
https://bugzilla.gnome.org/show_bug.cgi?id=746898
src/core/window-props.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/core/window-props.c b/src/core/window-props.c
index 5fdc452..f1e1be0 100644
--- a/src/core/window-props.c
+++ b/src/core/window-props.c
@@ -639,8 +639,6 @@ static void
set_window_title (MetaWindow *window,
const char *title)
{
- char *str;
-
gboolean modified =
set_title_text (window,
window->using_net_wm_visible_name,
@@ -649,11 +647,8 @@ set_window_title (MetaWindow *window,
&window->title);
window->using_net_wm_visible_name = modified;
- /* strndup is a hack since GNU libc has broken %.10s */
- str = g_strndup (window->title, 10);
g_free (window->desc);
- window->desc = g_strdup_printf ("0x%lx (%s)", window->xwindow, str);
- g_free (str);
+ window->desc = g_strdup_printf ("0x%lx (%.30s)", window->xwindow, window->title);
if (window->frame)
meta_ui_set_frame_title (window->screen->ui,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]