setres: Auto-detect xmethod

Use xprop on root window instead of an environment variable.