Fix undocked widgets losing title bar. Fixes #368

1 job for master in 13 minutes and 16 seconds (queued for 1 second)