Fix segfault on i3 when changing workspaces. Fixes lxde/lxde-qt#240

i3 workspaces are inconsistent with the desktop switch widget.