Force-quitting WindowServer will close all active applications, refresh the operating system, and log you out of your Mac. Don't try to quit the WindowServer process like you would do with other tasks.