A cool compress or ice pack can help reduce the swelling in general. Avoid rubbing your eyes, and if you wear contacts, remove them immediately. If allergies are the cause, oral and topical antihistamines can be helpful. Warm compresses help open any blocked pores and are the main first treatment for styes or chalazia.