This is something implemented by the compositor, so with KDE this may be addressed by the new Plasma Login Manager. GNOME already supports this.