Split get_pixmap_icon_from_wm_hints() into two