x11: Set icon issue fix

My attempt to fix the issue for set icon