Removed racy checks of cached iconification state.
Made queries use XRRGetScreenResourcesCurrent.

Fixes #347.
Closes #351.
Added GLFW_FOCUSED window hint.

Fixes #101.