Closing windows with the X button is buggy

I don’t know if it’s just me, or it happens to others, but unless I use ESC to close windows, clicking on the X of the window is really buggy. It doesn’t always work or I hear the sound of clicking on it, but it doesn’t close down.

I think the X button clickable zone is bizarre or too small or something of the likes. Closing windows (game panels) doesn’t work well with the mouse.

I hope this is something that’s looked at.