The only thing using the frame title is frame_repaint(). Move the call to frame_set_title() from weston_wm_window_read_properties() into weston_wm_window_draw_decoration() where the only call to frame_repaint() is. Do not check for window->name == NULL, because frame_set_title() handles NULL just fine. Also, once window->name becomes set, it cannot become NULL again unless strndup() fails. The name string can be reset to the empty string in any case. This change is prompted by future refactoring where at weston_wm_window_read_properties() time the frame might not have been created yet. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>dev
parent
20111d5d53
commit
9a330e1abb
Loading…
Reference in new issue