main: get window size from gtk

With this patch we can start wkline from wayland and the desktops widget will fail and return keeping the bar alive