Move atom name query in propertynotify to a separate function.
Rename active_wm() to enable_wm() since the purpose of the function is
to enable X window management. The error check is now done within the
function. Like before, return 0 on success; 1 on failure.