Minimize and Maximize buttons shifted right?

So my minimize and maximize buttons have shifted to the left and I don’t know how this happened. I would like to move them back closer to the close button. Here is a screenshot:

You can configure the window titlebar buttons in “Configure Desktop”->“Workspace Appearance”->“Window Decorations”, click on “Configure Buttons…” there.
I suppose you have some spacers between the maximize and the close button, remove them (drag them out of the title bar) and the maximize button should be more to the right.
See also: KWin - KDE UserBase Wiki

Hi, welcome

AFAICS nothing “happened”, this is the default. It’s done to avoid accidently closing an application.

this did it. thank you