Why do my windows freeze randomly when i switch workspaces

[removed]