It sounds like you're encountering an issue with the KWin window manager on your system. The "xcb error 152" typically indicates a problem with the X11 connection. Here are a few steps you might try to resolve this:
1. **Restart KWin**:
Open a terminal and try restarting KWin with the following command:
```bash
kwin_x11 --replace &
```
This will restart the window manager and might resolve the issue.
2. **Check for Updates**:
Make sure your system and all related packages are up to date. On a Debian-based system, you can do this with:
```bash
sudo apt update
sudo apt upgrade
```
3. **Check for Configuration Issues**:
Sometimes, configuration files can cause issues. You might want to reset KWin's configuration:
```bash
mv ~/.config/kwinrc ~/.config/kwinrc.backup
kwin_x11 --replace &
```
4. **Look for Logs**:
Check your system logs for more detailed error messages. You can view the logs using:
```bash
journalctl -xe
```
5. **Reinstall KWin**:
If the problem persists, you might want to try reinstalling KWin:
```bash
sudo apt-get install --reinstall kwin-x11
```
If none of these steps work, you might consider seeking help from the community forums or filing a bug report with the KDE developers.