Fixed crashing on wayland while trying to take a window screenshot when there are no windows
The HAVE_X11 constant can be 1 even when running on wayland, so I added a runtime check before the rest of the program assumes it can use X11 functions.
If there is no X, instead of failing, it will take a full screen screenshot.