[Linux] Add HandleWMStateUpdate to handle window events