Fixed client/server widgets not displaying

Now gets sizeHint from widgets instead of window.