Skip to content
  • Hans de Goede's avatar
    window-x11: Refactor meta_prop_get_latin1_string() calls · fa461525
    Hans de Goede authored and Jonas Ådahl's avatar Jonas Ådahl committed
    Instead of storing the result of meta_prop_get_latin1_string() into
    a temporary string value, g_strdup-ing that temp value storing the
    g_strdup result into window->sm_client_id and then g_free-ing the
    temporary string, we can pass window->sm_client_id as the place where
    meta_prop_get_latin1_string() stores its result, since the result
    from meta_prop_get_latin1_string() is itself a g_strdup-ed string,
    so there is no need to g_strdup it again.
    
    Note this drops the check to only issue the
    "Window %s sets SM_CLIENT_ID on itself ..." warning once. This check is
    not necessary as update_sm_hints() is only called once at window
    creation time and is never called again.
    
    !786
    fa461525