[hotfix] event queue modification while processing
[hotfix] event queue modification while processing

 - event queue could be modified while being processed
 - queue was resized and pointer being accessed turned invalid
 - fixed by snatching the queue when processing
   -> new events are added to new queue
   -> old queue free'd after being processed

Signed-off-by: David Oberhollenzer <ef97309e490485c1bad5018f0617d7fa37bc07ac@tele2.at>

AgentD/sgui,AgentD/sgui,AgentD/sgui