When you use NVIDIA driver on kubuntu systems maybe you will incurred in some issues like “freezing” or “block” when switching between windows (alt+tab).
In order to fix you have to disable compositor from “System Settings” and restart your computer.