diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-04-03 23:07:16 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-04-03 23:07:16 +0300 |
commit | 24ceab4ecfc09cb96d06c6cb97871edfb83e2463 (patch) | |
tree | 95e15caee96d6dd9fe3d655323278a24c62a418b | |
parent | 4ccb99a50c54f345c4c7d9ac77f1ea76bc6c7c74 (diff) | |
download | metacity-24ceab4ecfc09cb96d06c6cb97871edfb83e2463.tar.gz |
window-props: increase window title length in debug messages
https://bugzilla.gnome.org/show_bug.cgi?id=746898
-rw-r--r-- | 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 5fdc4527..f1e1be0f 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, |