(#1191) Disallow picking up if inventory disabled

Check if window manager has allowed the inventory window
if not, then items should not be possible to pick up