x11/waybar: backport a sway fix after 2f0148b21333
(cherry picked from commit 0ef341518917ed47380e3965d69bbde13c8fdace)