Skip to content
  • Pekka Paalanen's avatar
    xwm: move frame_set_title() into draw_decoration() · 9a330e1a
    Pekka Paalanen authored
    
    
    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: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    Reviewed-by: default avatarQuentin Glidic <sardemff7+git@sardemff7.net>
    9a330e1a