Lost windows buttons after uninstalling latte dock

Hi there, welcome to the forum.
Try using the following kWin setting in $HOME/.config/kwinrc

[Windows]
BorderlessMaximizedWindows=false
7 Likes