When ever i play a mod pack (any mod pack) and i try to attack something my game starts flashing and minimizes itself which makes every mod pack unplayable. I have tried to look for a solution but i have not found any way to fix my problem. The cursor also has that blue loading circle next to it when ever the game minimizes.