It should be plenty of time. You’ll clear security in WAW but no passport control as you don’t enter Poland.
LOT’s schedules are just random numbers on a bit of paper these days, so you’ll probably have longer to make the LO279 than is stated on your reservation.
If you misconnect they can rebook you to BA or the later LO285.