mirror of
https://github.com/brl/mutter.git
synced 2024-11-09 23:46:33 -05:00
[MetaWindow]: Always notify on title property change
The previous notification code was attempting to use the "modified" boolean returned from set_title_text, but "that boolean doesn't mean what you think it means". It actually means "I truncated the title". Just always notify, it's far simpler than trying to compute when we don't need to, and callers can compress if they really need to.
This commit is contained in:
parent
9cc70a3fb6
commit
01581dc61c
@ -472,8 +472,8 @@ set_window_title (MetaWindow *window,
|
||||
meta_ui_set_frame_title (window->screen->ui,
|
||||
window->frame->xwindow,
|
||||
window->title);
|
||||
if (modified)
|
||||
g_object_notify (G_OBJECT (window), "title");
|
||||
|
||||
g_object_notify (G_OBJECT (window), "title");
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user