Well, generally speaking, eye infection can lead to swollen eyes. As we know that bacterial conjunctivitis is caused by bacteria that cause ear infections. So we can say that it is likely to have swollen eyes when someone has eye infection. In other words, when your eyes have been infected by irritants, your eyes can be itchy. In some cases, it can lead to swollen eyes. And then it turns out to be the situation what you have said. So you should not touch your eyes, when you have infection, especially with the fingers which have touched other dirty things. Or it can infect your eyes. For your situation, I will suggest you drop some eye drops, and it can be effective to the symptom. And having some cucumber under your eyes for a long time, maybe that can relieve your symptom too.