The patch is now applied to upstream git: https://git.xfce.org/xfce/xfce4-power-manager/commit/?id=9fb776bc488f073e47f47cf69b632d1045221d08