winex11: Replace the lock_changes flag by a check on the event currently being processed.