bc08ad2fbb
Until now we would: 1. Enqueue modifier key event on the stage. 2. Update device modifier state. 3. Dequeue and process modifier key event with NEW device modifier state. But if we consider optimizing out the queuing in some cases then there will become a problem: 1. Process modifier key event with OLD device modifier state. 2. Update device modifier state. To correct the above we now do: 1. Update device modifier state. 2. Queue/process modifier key event with NEW device modifier state. It appears commit dd940a71 which introduced the old behaviour was correct in the need to update the device modifier state, but is at least no longer correct (if it ever was) that it should be done after queuing the event. If queuing is working, as it is right now, then it makes no difference whether the device modifier state is updated before or after. Because both cases will come before the dequeing and processing. https://gitlab.gnome.org/GNOME/mutter/merge_requests/711