Avoid exit desktop client when press ctrl+w

hello there, I used ctrl+w to close tabs in browser, and I use ctrl+w to close the client window, but the client exit, even if I enabled “close to tray” option.