Closing some invisible window can cause e.g. Firefox crash. Send the message to visible windows and others should be cleaned up by the application. (cherry picked from commit 5c4e88a765)
5c4e88a765
Killing Xorg makes "unclean" termination of applications. Some apps (Firefox) complains about that at next startup.