Fix the DPI script to only operate on active screens